Permalink correct but page fails to load corresponding text
-
Hi there:-
The navigation and loading of text of previous posts isn’t working properly. The blog correctly shows the most recent post. However, on clicking the permalink to a previous post, the browser window shows the correct URL but fails to load the corresponding text. It continues to show the text from the most recent post. (So there is a mismatch between the URL and the rendered text.)
Originally I had the blog set to show only 1 post at a time (under Settings -> Reading). My first thought was to change this, in case it was causing the problem. I changed it to 5 posts. Strangely this had no impact. At minimum I would have expected to see my two posts shown one underneath the other.
This made me think that the problem might be in my loop somewhere(?).
However, I didn’t see a problem in the code:
<div id=”postContent”>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<p class=”metaData”>Posted by <span class=”postAuthor”>Linda Kerley</span> | <?php the_time(‘F jS, Y’) ?></p><p><?php the_content(__(‘(more…)’)); ?></p>
<h3 class=”comments”>Reader feedback: <?php comments_popup_link(‘0 Comments. Be the first. »’, ‘1 Comment »’, ‘% Comments »’); ?></h3>
<!–Here we show comments per post –>
<?php comments_template(); // Get wp-comments.php template ?><?php endwhile; else: ?>
<p><?php _e(‘Sorry, no posts matched your criteria.’); ?></p><?php endif; ?>
Is it perhaps a setting somewhere?
Default blog URL: https://www.userelement.com/blog/
Permalink to previous blog post: https://www.userelement.com/blog/websites/understanding-website-pricing-2/
- The topic ‘Permalink correct but page fails to load corresponding text’ is closed to new replies.