WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Displaying Custom Post Type UI titles and headers

[Resolved] Displaying Custom Post Type UI titles and headers

  • kmaier
    Member

    @kmaier

    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/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Displaying Custom Post Type UI titles and headers’ is closed to new replies.