Display custom post types as they were pages (1 post)

  1. PaBLoX
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic