Custom Post Type Name Causing Problem

Please ignore my poor English.

I have custom post type (order). and its working like charm,

But default post type (pages) list are not displaying in wp-admin side.

You can see More information in attached screenshots.

Please help me guys to figure out what is the problem.

For Order Post Type:-
enter image description here

For Pages:-
enter image description here

I have added following code:

add_action('init', 'create_post_type');
function create_post_type()
{
    register_post_type('order',
            array(
                    'labels' => array(
                            'name' => __('Orders'),
                            'edit_item' => __('Edit Order'),
                            'add_new' => __('New Order'),
                            'add_new_item' => __('Add New Order'),
                            'singular_name' => __('Orders')
                    ),
                    'public' => true,
                    'supports' => array('title', 'editor', 'custom-fields')
            )
    );
}

3 Answers
3

order is a reserved term, the best – I know of – overview over those can be found here: Codex: register_taxonomy() – Reserved Terms. The list is in it’s relevance not restricted to taxonomies. The introduction to it does make it clear(er) why:

Avoiding the following reserved terms is particularly important if you are passing the term through the $_GET or $_POST array. Doing so can cause WordPress to respond with a 404 error without any other hint or explanation.

Leave a Comment