Support » Fixing WordPress » list child pages stopped working

  • At final testing before launch, I saw the sub-pages links. Now the site is live, and the links aren’t there! Only the

      tags, nothing is generated in between. I’m using the code to list subpages if there are any, and on all subpages. Here is the code:

        <?php
        if($post->post_parent) { // page is a child
        wp_list_pages(‘sort_column=menu_order&title_li= &child_of=’.$post->post_parent);
        }
        elseif(wp_list_pages(“child_of=”.$post->ID.”&echo=0″)) { // page has children
        wp_list_pages(‘sort_column=menu_order&title_li= &child_of=’.$post->ID);
        }
        ?>

      The site is http://www.rogiercommunications.com

      any help greatly appreciated

    • The topic ‘list child pages stopped working’ is closed to new replies.