Page works when called directly, not when using menu link
-
Hello,
If I click the “About” link in the nav menu on therockingchair.org I get the following:
This XML file does not appear to have any style information associated with it. The document tree is shown below. <playlist version="1"> <trackList> <track> <title>Front Door</title> <creator>Jason</creator> <location> https://www.therockingchair.org/about_photos/doors_lg.jpg </location> <info>https://www.therockingchair.org</info> </track> <track> <title>Open Front Door</title> <creator>Jason</creator> <location> https://www.therockingchair.org/about_photos/opendoor_lg.jpg </location> <info>https://www.therockingchair.org</info> </track> <track> <title>Inside the Door</title> <creator>Jason</creator> <location> https://www.therockingchair.org/about_photos/insidedoor_lg.jpg </location> <info>https://www.therockingchair.org</info> </track> <track> <title>Inside Room</title> <creator>Jason</creator> <location> https://www.therockingchair.org/about_photos/room1_lg.jpg </location> <info>https://www.therockingchair.org</info> </track> <track> <title>The Fireplace</title> <creator>Jason</creator> <location> https://www.therockingchair.org/about_photos/fireplace_lg.jpg </location> <info>https://www.therockingchair.org</info> </track> </trackList> </playlist>
When I enter the URL directly or click the link in the editor the About page loads fine.
“About” is a custom page design which, from what I can tell, seems to be coded fine. Just in case, here’s the code:<?php /* Template Name: About */ ?> <?php wp_head(); ?> <?php get_header(); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post"> <div class="post-title"><h1><?php the_title(); ?></h1></div> <div class="entry"><p><?php the_content('[Read the rest of this entry...]'); ?> <?php $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0'); if ($children) { ?> <ul id="subpage"> <?php echo $children; ?> </ul> <?php } ?></p></div> </div> <!-- Closes Post --> <?php endwhile; ?> <?php else : ?> <div class="post"> <h1>Not Found</h1> <div class="entry">Sorry, but you are looking for something that isn't here.</div> </div> <!-- Closes Post --> <?php endif; ?> <?php get_sidebar(); ?> <?php get_footer(); ?>
I’ve never encountered this before and to be quite honest, I’m stumped. Your help would be greatly appreciated! ??
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘Page works when called directly, not when using menu link’ is closed to new replies.