WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Been reading this site and Wordpress Codex and I see there is a function to enable custom type of pages in Wordpress. How can I do the same to enable for Pages ?

Or at least get the options for the posts to appear for placing the posts under Pages ?

share|improve this question
I don't understand what it is you're trying to do. Could you please expand on your question a little bit? – EAMann Sep 24 '10 at 0:16
up vote 1 down vote accepted

you question is not so clear for understand. Anyway i try to respond... You can use 'hierarchical' => true when you declarate you new custom post type.

For placing this new menu in some other position in your admin are use the proprety 'menu_position' => 5,.

Example (to add in your functions.php file):

add_action( 'init', 'create_my_post_types' );    

function create_my_post_types() {
    register_post_type( 'mycustompages',
            'labels' => array(
                'name' => __( 'My custom pages' ),
                'singular_name' => __( 'My custom page' )
            'public' => true,
            'hierarchical' => true,
            'show_ui' => true,
            'publicly_queryable' => true,
            'exclude_from_search' => false,
            'menu_position' => 5,
            'supports' => array( 'title', 'editor', 'comments', 'trackbacks', 'author', 'excerpt', 'custom-fields', 'thumbnail' ),
            'rewrite' => array( 'slug' => 'mypage', 'with_front' => false ),
share|improve this answer
Yip that was it. Started playing around last night and switch the hierarchical to true made it a page. Thanks ! – phwd Sep 24 '10 at 15:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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