Title: Problem displaying a single post
Last modified: August 18, 2016

---

# Problem displaying a single post

 *  [hesed2](https://wordpress.org/support/users/hesed2/)
 * (@hesed2)
 * [21 years ago](https://wordpress.org/support/topic/problem-displaying-a-single-post/)
 * I’m developing a website for my church, using WP as a CMS. It’s working great,
   but I’m running into a small problem. Each page on the site is running two instances
   of The Loop. The first instance of The Loop pulls the content of the actual page,
   and the second pulls any posts in a certain category. So far, so good. The problem
   is that some posts have more info than I want to display on a general page, so
   I’m using the “More” tag. When you click on the (More…) link, however, you get“
   Sorry, but you are looking for something that isn’t here.” I can’t figure out
   why this isn’t working. The site can be viewed here: [http://www.newrestalrig.com/](http://www.newrestalrig.com/)
   try clicking on one of the “More” links in the left siderbar. I can’t figure 
   out what the problem is. My only thought is that maybe there is an issue with
   the premalink structure, but I don’t know what it is. WARNING: this site is still
   in development and most of the content on it is complete nonsense.
 * Thanks for any help.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [21 years ago](https://wordpress.org/support/topic/problem-displaying-a-single-post/#post-218879)
 * It is difficult to say without viewing the code. On the main page (which, based
   on another post of yours, I assume is a `home.php` file) I don’t see where the
   non-sidebar Loop is. What are the posts displayed by that instance of the Loop?
   
   Furthermore, what template is used to display the single posts? Index or single.
   php? Is the Loop there different from that used on the homepage? Or it’s the 
   same and is “excluding” the category shown in the sidebar?
 *  Thread Starter [hesed2](https://wordpress.org/support/users/hesed2/)
 * (@hesed2)
 * [21 years ago](https://wordpress.org/support/topic/problem-displaying-a-single-post/#post-219078)
 * Thanks for your response, moshu. The home page is a little different. On that
   page there’s only one instance of The Loop (well, except for the sidebars) pulling
   posts from a particular category. Those posts are the ones titled “Welcome!” 
   and “Current Series”.
 * The right and left sidebars are in separate files, so I don’t think that’s the
   issue. The single posts are using single.php. Here’s the code for that template:
   `
   <?php get_header(); ?>`
 * <div class="outer">
 * <div class="float-wrap">
 *  <div class="center">
 *  <?php if (have_posts()) : ?>
 *  <?php while (have_posts()) : the_post(); ?>
 *  <div class="post" id="post-<?php the_ID(); ?>">
    <h2><?php the_title(); ?></
   h2>
 *  <div class="entry">
    <?php the_content('Read the rest of this entry »'); ?> 
   </div>
 *  <p class="postmetadata"><?php edit_post_link('edit','',''); ?>
    </div>
 *  <?php endwhile; ?>
 *  <div class="navigation">
    <div class="alignleft"><?php next_posts_link('« Previous
   Entries') ?></div> <div class="alignright"><?php previous_posts_link('Next Entries»')?
   ></div> </div>
 *  <?php else : ?>
 *  <h2 class="center">Not Found</h2>
    <p class="center">Sorry, but you are looking
   for something that isn't here. <?php include (TEMPLATEPATH . "/searchform.php");?
   >
 *  <?php endif; ?>
 *  </div> <!-- end centered div -->
 * <?php include (TEMPLATEPATH . '/left_column.php'); ?>
 * <?php get_footer(); ?>
 *  Thread Starter [hesed2](https://wordpress.org/support/users/hesed2/)
 * (@hesed2)
 * [21 years ago](https://wordpress.org/support/topic/problem-displaying-a-single-post/#post-219104)
 * I figured it out. I’ll post the solution here in case anyone else has this problem.
 * After doing some reading on permalink structure in the codex I saw that “%category%
   does not work correctly with mod_rewrite in Apache versions prior to 2”. So, 
   I took that out of my my permalinks. I then had only %postname% left, and also
   saw that there can be problems using only %postname%. So I added %post_id% at
   the end, and got another strange, but different problem. After some more fiddling,
   I reversed the permalink structure, leaving me with “/%post_id%/%postname%/”.
   This worked! So everything is fine now.
 * The codex should probably be updated, though, to say note only that there are
   problems using only %postname%, but there are also problems using %postname% 
   first.
 * Thanks for taking the time to respond, moshu.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problem displaying a single post’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [hesed2](https://wordpress.org/support/users/hesed2/)
 * Last activity: [21 years ago](https://wordpress.org/support/topic/problem-displaying-a-single-post/#post-219104)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
