• Resolved galebnas1

    (@galebnas1)


    Hello,
    Thank you for the great work.
    is it possible to request a quick fix, I am trying to use the plugin with custom post types.
    I want the ability to include projects or portfolio posts

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author bluisier

    (@bluisier)

    I will include it in the next release… it should’nt be a big deal

    Thread Starter galebnas1

    (@galebnas1)

    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;
            }
        }
    Plugin Author bluisier

    (@bluisier)

    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 ??

    Callum

    (@callumalden)

    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 7 years, 3 months ago by Callum.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Other post type’ is closed to new replies.