• Resolved fredhc

    (@fredhc)


    Hi, to be able to create a custom page model with conditions in Elementor, you need to set to true show_in_nav_menus in CPT registering.
    Could you please enable this option on future update to avoid manually updating the plugin on each update.
    The same problem occurs in your forumwp plugin.
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    Hi @fredhc

    Please use this snippet in your theme’s functions.php file to avoid the manually updating:

    function my_jb_cpt_list( $cpt ) {
        $cpt['jb-job']['show_in_nav_menus'] = true;    
        return $cpt;
    }
    add_filter( 'jb_cpt_list', 'my_jb_cpt_list', 10, 1 );

    The similar for the ForumWP plugin:

    function my_fmwp_cpt_list( $cpt ) {
        $cpt['fmwp_forum']['show_in_nav_menus'] = true;    
     $cpt['fmwp_topic']['show_in_nav_menus'] = true;    
     $cpt['fmwp_reply']['show_in_nav_menus'] = true;    
        return $cpt;
    }
    add_filter( 'fmwp_cpt_list', 'my_fmwp_cpt_list', 10, 1 );
    Thread Starter fredhc

    (@fredhc)

    Hi @nsinelnikov

    Thanks for your support, it’s working great now on both of yours plugins.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Enable show_in_nav_menus CPT’ is closed to new replies.