• Resolved brand-dedication

    (@brand-dedication)


    Hi,

    What kin of custom post type support is needed for Nested Pages so the sorting/interface can be used on that post type.

    I once had this enabled for Templatera, the Visual Composer Templating system.

    But since their update I can’t get it to work anymore.

    I’ve set the heiarchical status to true and tested a bunch of other options, and went through the register_post_type codex and it is just not working out anymore for what I try.

    Can you help me here? What may be needed other than just hierarchical support? Something blocking it?

    Here is the code for Templatera in short…

    function createPostType() {
    			register_post_type( self::$post_type,
    				array(
    					'labels' => array(
    						'add_new_item' => __( 'Add template', "templatera" ),
    						'name' => __( 'VC Templates', "templatera" ),
    						'singular_name' => __( 'Template', "templatera" ),
    						'edit_item' => __( 'Edit Template', "templatera" ),
    						'view_item' => __( 'View Template', "templatera" ),
    						'search_items' => __( 'Search Templates', "templatera" ),
    						'not_found' => __( 'No Templates found', "templatera" ),
    						'not_found_in_trash' => __( 'No Templates found in Trash', "templatera" ),
    					),
    					'public' => false,
    					'has_archive' => false,
    					'show_in_nav_menus' => true,
    					'exclude_from_search' => true,
    					'publicly_queryable' => true,
    					'show_ui' => true,
    					'query_var' => true,
    					'capability_type' => 'post',
    					'hierarchical' => true,
    					'menu_position' => null,
    					'menu_icon' => $this->assetUrl( 'images/icon.gif' )
    				)
    			);
    		}

    https://www.ads-software.com/plugins/wp-nested-pages/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Kyle Phillips

    (@kylephillips)

    It’s most likely due to the “public” parameter being false.

    If setting that to true resolves your problem, I will make some tweaks to the plugin to accommodate (another user was having a similar issue with another CPT, but I never got confirmation about a possible fix).

    Thread Starter brand-dedication

    (@brand-dedication)

    Hey Kyle,

    This is the fix.

    Oddly, I swear I did that at least 10 times and didn’t notice it.

    It could of been something else playing with my head, I will keep an eye on.

    But I did just set ‘public’ => true, and it works.

    So this is confirmation!

    Thread Starter brand-dedication

    (@brand-dedication)

    Thanks for getting back so quick too.

    If you want to test with Templatera, let me know.

    Or when you make the update I will make sure to set the public back to false and see if Nested Pages picks it up without it being set to true.

    Then update you here about it.

    Plugin Author Kyle Phillips

    (@kylephillips)

    Thanks for the confirmation. I’ll include a patch in the next release.

    Thread Starter brand-dedication

    (@brand-dedication)

    Welcome and the same.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Visual Composer Templatera Support’ is closed to new replies.