I will include it in the next release… it should’nt be a big deal
Thanks,
I fixed it by changing line 367 in “class-novo-map-admin.php” to :
$screens = array( 'post', 'page', 'portfolio' );
and adding the following code after line 69 in “admin-helpers.php”
elseif ( isset( $post['post_type'] ) && 'portfolio' == $post['post_type'] ) {
if ( ! current_user_can( 'edit_post', $post['ID'] ) ) {
_e('<div class="notice notice-error is-dismissible"><p>User not allowed to edit this post.</p></div>');
return false;
}
else {
return true;
}
}
Good fix 😉 … I’ll see if I can come up with a solution that works for any sort of custom post type in the next version 🙂
I used galebnas1’s trick to view the map selector on Product pages too. This is a fantastic plugin. Great work. I’m really impressed.
-
This reply was modified 8 years, 5 months ago by
callumalden.