WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type UI
[resolved] Displaying Custom Post Type UI titles and headers (2 posts)

  1. kmaier
    Member
    Posted 1 year ago #

    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>
    
    <?php
    if($post->post_parent)
    $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");
    else
    $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
    if ($children) { ?>
    <ul class="sec-nav">
    <?php echo $children; ?>
    </ul>
    <?php } ?>

    Thanks for any help!

    http://wordpress.org/extend/plugins/custom-post-type-ui/

  2. Michael Beckwith
    Member
    Plugin Author

    Posted 1 year ago #

    ever get this solved kmaier?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.