WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Custom Post Type Creator] WCK Post Type Creator showing only 4 post type

[Plugin: Custom Post Type Creator] WCK Post Type Creator showing only 4 post type

Viewing 5 replies - 1 through 5 (of 5 total)
  • bwhontwerpers

    @bwhontwerpers

    Hi,

    I’m having the same problem. My fifth custom post type isn’t showing up in the admin menu. I can, however, access it by navigating to another custom post type and change the post_type parameter in the URL to the ‘hidden’ custom post type. So the registration of the new post type seems to be valid, it just isn’t included in the admin menu bar (left).

    Any suggestions?

    Same here!

    4 custom types: all show in the admin menu
    5 custom types: only the first 4 show in the admin menu
    6+ custom types: all show in the admin menu except for the 5th.

    So if you create a ‘false’ post type (a post type you are not going to use), and place it in the 5th place, it works as expected.

    It’s not very tidy, though.

    It isn’t tidy at all, but this is some useful info. Inserting a false post type first thing this morning. Hopefully this will be fixed in a future update. Thanks lagunas.

    To be able to show all custom post types on the admin left menu, you have to modify the wck-cptc.php.

    Change the position value from this:

    $args = array(
    	'page_title' => 'WordPress Creation Kit',
    	'menu_title' => 'WCK',
    	'capability' => 'edit_theme_options',
    	'menu_slug' => 'wck-page',
    	'page_type' => 'menu_page',
    	'position' => 30 // Right after comments menu and the other
    );

    to

    $args = array(
    	'page_title' => 'WordPress Creation Kit',
    	'menu_title' => 'WCK',
    	'capability' => 'edit_theme_options',
    	'menu_slug' => 'wck-page',
    	'page_type' => 'menu_page',
    	'position' => 66 // Right after Plugins menu and the other
    );

    this would allow your more than 4 custom post types to be displayed.

    Thanks for the tip more2come3, that should work for now. Would be really cool if this could get fixed in an update or something 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Custom Post Type Creator] WCK Post Type Creator showing only 4 post type’ is closed to new replies.