The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. kmaier
    Posted 3 years 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>
    $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!


  2. Michael Beckwith
    Plugin Author

    Posted 3 years ago #

    ever get this solved kmaier?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Post Type UI
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.