Support » Fixing WordPress » Displaying Custom Post Type UI info on a page

  • Can anyone point me in the right direction for displaying these?

    I set up a post type of hotels and started to create some individual hotel pages. I can view those fine, my problem is i would like the main hotels post type to display as a header as well as list out the individual titles below for a navigation. The title pulls the individual page and not the hotels post type and I am getting nothing as far as listing out the individual pages for navigation.

    Here is what I have done when they were pages..

    <h2><?php echo get_page(array_pop(get_post_ancestors($post->ID)))->post_title; ?></h2>
    $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");
    $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
    if ($children) { ?>
    <ul class="sec-nav">
    <?php echo $children; ?>
    <?php } ?>

    Thanks for any help!

  • The topic ‘Displaying Custom Post Type UI info on a page’ is closed to new replies.