0

I'm registering the following post type:

register_post_type( 'post', array(
    'hierarchical' => true,
    'public'       => true
) );

Now I have duplicate "Pages" menu items in WordPress Admin Menu. It should be not "Pages" but rather "Posts".

In older versions of WordPress ( < 4.4 ) everything was alright. Any suggestions to do the same? Most important is to make my posts hierarchical.

Duplicate "Pages" Image

3
  • 1
    Well posts aren't hierarchical - pages are. Trying to change that potentially opens a can of worms. Why don't you just use pages? Or a custom post type? Any reasons?
    – kraftner
    Commented Dec 10, 2015 at 15:24
  • Possible duplicate of post type register stoped working after update 4.4
    – kraftner
    Commented Dec 10, 2015 at 15:45
  • @kraftner is correct. Trying to clobber a Core Post type is a bad, bad idea. Why are you (and why do you need to) convert the "Post" type into, essentially, the "Page" type? You already have pages.
    – s_ha_dum
    Commented Dec 10, 2015 at 15:58

1 Answer 1

1

I can only speculate onto why the labels are "Pages" and not "Posts" but I do know that post is on the list of reserved post types. The fact is that post is already registered by default as your normals Posts so you cannot re-register it. Here's a list of Default Post Types with their respective post type slugs.

What you want to do is actually create your own Custom Post Type. Steps to register Custom Post Type.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.