WordPress.org

Support

Support » How-To and Troubleshooting » Display custom post types as they were pages

Display custom post types as they were pages

  • I don’t know if I’m looking in the wrong place, but I just can’t find a way to do something similar to the wp_list_pages() or get_pages(), but with a new post type (page-type) that I created:

    register_post_type('programa', array(
    	'label' => 'Programas',
    	'singular_label' => 'Programa',
    	'public' => true,
    	'show_ui' => true,
    	'capability_type' => 'page',
    	'hierarchical' => true,
    	'query_var' => false,
            'rewrite' => array("slug" => "programa"),
    	'supports' => array('title', 'editor', 'author', 'thumbnail', 'page-attributes')
    ));

    In the “programa” post-type I have a lot of metaboxes (that I only want to appear there, not in the normal “page”) and a different template (programa-single.php).

    Basically, I want the sub-pages of a speficic page to have all the customization that I explained before and not all the pages (it’ll cause confusion), but maybe I’m complicating myself and there’s something simpler.

  • The topic ‘Display custom post types as they were pages’ is closed to new replies.
Skip to toolbar