• any way i can get the subheading of a page to pull using the following?

    <?php
    if (is_page( )) {
    
    $page = $post->ID;
    
    if ($post->post_parent) {
    $page = $post->post_parent;
    }
    
    $children= wp_list_pages( 'echo=0&depth=1&child_of=' . $page .  '&title_li=' ) ;
    
    if ($children) {
    $output = wp_list_pages ('echo=0&depth=1&child_of=' . $page . '&title_li=');
      }
    
    }
    echo $output; 
    
    ?>

    Trying to get a name(the post id) to pull to a navigation and the subheading of their professional title. I’m able to get the page heading just fine but not the sub header…Using the SubHeading plug-in

    thanks for any help.

    kmaier

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘post id & subheading’ is closed to new replies.