• Resolved shwebdev

    (@shwebdev)


    Hi,

    My post types i created with CPT UI are showing up in the Additional Post Types which says The custom post types below are registered in WordPress but were not created by the Custom Post Type UI Plugin.

    They also appear in the Manage Custom Post Types list as well because they were actually created by CPT UI.. What can cause this?

    https://www.ads-software.com/plugins/custom-post-type-ui/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Could you please provide a screenshot of what you’re seeing? I’m having a difficult time picturing this situation.

    Hi Michael, I actually have the same problem and do not understand how to remove it. I’ve made the screenshot you had asked Shwebdev.

    Hope you find it useful

    screenshot: https://xihe.nl/Additional-Custom-Post-Types.png

    I’ve also seen this before and had to start from scratch creating my CPT’s. I seem to remember taking more care with my naming conventions the second time and it didm’ reappear. I had the feeling it was down to a naming conflict/overlap. Is that a possible cause?

    Maybe this helps,
    I used the “Get Code” and copied that code in to “functions.php”.
    Removing that code from “functions.php”, and newsletter sign was gone.

    add_action('init', 'cptui_register_my_cpt_newsletter');
    function cptui_register_my_cpt_newsletter() {
    register_post_type('newsletter', array(
    'label' => 'Newsletter',
    'description' => '',
    'public' => true,
    'show_ui' => true,
    'show_in_menu' => true,
    'capability_type' => 'post',
    'map_meta_cap' => true,
    'hierarchical' => false,
    'rewrite' => array('slug' => 'newsletter', 'with_front' => true),
    'query_var' => true,
    'exclude_from_search' => true,
    'menu_position' => '6',
    'supports' => array('title','editor','excerpt','trackbacks','custom-fields','comments','revisions','thumbnail','author','page-attributes','post-formats'),
    'labels' => array (
    	'name' => 'Newsletter',
    	'singular_name' => 'Newsletter',
    	'menu_name' => 'Newsletter',
    	'add_new' => 'Add Newsletter',
    	'add_new_item' => 'Add New Newsletter',
    	'edit' => 'Edit',
    	'edit_item' => 'Edit Newsletter',
    	'new_item' => 'New Newsletter',
    	'view' => 'View Newsletter',
    	'view_item' => 'View Newsletter',
    	'search_items' => 'Search Newsletter',
    	'not_found' => 'No Newsletter Found',
    	'not_found_in_trash' => 'No Newsletter Found in Trash',
    	'parent' => 'Parent Newsletter',
    )
    ) ); }
    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    The “Additional” section is going to show any registered post types that weren’t done by our plugin, and aren’t built in and available from a fresh install. Example: “Post”, “Page”, etc.

    This “additional post types” section will actually not be kept in 0.9, but I’m still not done with that yet.

    Only way I can think of them getting listed in this section though, is if it’s not done via our plugin. Though it doesn’t make sense for why it wouldn’t be listed in the top section as a result.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom and Additional Post Types issue’ is closed to new replies.