WordPress.org

Ready to get started?Download WordPress

Forums

Child Page No Longer Showing on Parent Page (10 posts)

  1. megzo487
    Member
    Posted 2 years ago #

    I've read all I can about this but can't seem to find my answer.

    About a week ago all was fine, if you clicked on Band Locator the page would open and you would see the following:

    States
    -Alabama
    --Metal
    --Indie
    -Alaska
    --Metal
    ect.

    Then once you click on Indie it would open a new page with a list of bands. However now, the children pages are no longer showing. They still exist, but are no longer listed on the parent page. The owner of the page haven't touched this area in over 2 weeks so I'm not exactly sure what happened here.

    I deactivated the plugins, didn't help. I am using the Twenty Ten 1.3 theme. Any tips on what to check or a solution would be great. I am currently going page by page, and currently am finding nothing out of the ordinary.

    Website is http://undergroundmusicunites.com

    Pages effected:

    http://undergroundmusicunites.com/band-locator/
    Current Back End Set Up:
    Band Locator
    -States
    --Alabama
    ---Metal/Hardcore
    --Alaska
    ---Metal/Hardcore
    ect.

    http://undergroundmusicunites.com/reviews/
    Current Back End Set Up:
    Albums Reviews
    -Broken Torment
    -This and That
    -So on and so forth.

    Please help!

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Have you added the child pages as sub-memu items in your custom menu?

  3. megzo487
    Member
    Posted 2 years ago #

    No, reason being, the drop down list that appears when you scroll over it would be far to long to even look nice. This was not an issue before. However we do have it active on the album release page. Could it be conflicting somehow?

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    Did you previously customise the page.php template file in the theme? Or create a custom page template that listed out these sub-pages?

  5. megzo487
    Member
    Posted 2 years ago #

    No.

    page.php is as follows.

    get_header(); ?>
    <div id="primary">
    <div id="content" role="main">
    <?php while ( have_posts() ) : the_post(); ?>
    <?php get_template_part( 'content', 'page' ); ?>
    <?php comments_template( '', true ); ?>
    <?php endwhile; // end of the loop. ?>
    </div><!-- #content -->
    </div><!-- #primary -->
    <?php get_footer(); ?>

    [Please post code snippets between backticks or use the code button.]

  6. esmi
    Forum Moderator
    Posted 2 years ago #

    Did you create a custom page template that listed out these sub-pages? The default page.php template file in Twenty Eleven has never listed out sub-pages.

  7. megzo487
    Member
    Posted 2 years ago #

    Odd. No custom pages have been created. Was working since September, then stopped. I know we can link out to the already created pages, but it was already done so it would be redoing a lot of work.

    Thanks for the quick responses Esmi!

  8. esmi
    Forum Moderator
    Posted 2 years ago #

    Was working since September, then stopped

    As I mentioned above. the Twenty Eleven default page template does not include code to generate a list of child pages and never has done.

  9. megzo487
    Member
    Posted 2 years ago #

    Figured it out, missing code that was previously there. Thanks for letting me know I was missing something!

  10. esmi
    Forum Moderator
    Posted 2 years ago #

    missing code that was previously there

    No! There was no code there in the original theme. You must have added this code - which is wrong. Never edit the Twenty Eleven theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. Create a child theme for your changes.

Topic Closed

This topic has been closed to new replies.

About this Topic