Title: Loop help; displaying single posts
Last modified: August 18, 2016

---

# Loop help; displaying single posts

 *  Resolved [invisibled](https://wordpress.org/support/users/invisibled/)
 * (@invisibled)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/loop-help-displaying-single-posts/)
 * Hey everybody,
 * i’m fairly new to wordpress, and i’m building a website out of it. I decided 
   to use wordpress for it becuase all the pages are just text and its a simple 
   site.
 * I put the different sections content in different posts, and i want to display
   1 post on the homepage (its the newest post in a catgegory called “pages”)and
   then i have the post titles listed in a loop acting as the menu.
 * when i click on the page titles the browser title changes to the correct one,
   and the url changes correctly, but the content always stays as the newest post.
 * is there a certain file i have to make, for example page.php or archive.php
 * any help would be great! Here is a link to the live site:
 * [http://invisibled.com/polarexpressions.ca/](http://invisibled.com/polarexpressions.ca/)
 * and here is the code for displaying the content:
 *     ```
       <?php if (have_posts()) : the_post(); ?>
       <div class="post" id="post-<?php the_ID(); ?>">
       <div class="entry">
       <?php the_content(); ?>
       </div>
       </div>
       <?php endif; ?>
       ```
   

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

 *  [Jeremy Clark](https://wordpress.org/support/users/jeremyclark13/)
 * (@jeremyclark13)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/loop-help-displaying-single-posts/#post-562137)
 * Can’t tell much about the site your using localhost as the site url. It should
   be the url you use to access the site from outside your network. But you might
   want to have a look of [this](http://codex.wordpress.org/the_loop).
 *  Thread Starter [invisibled](https://wordpress.org/support/users/invisibled/)
 * (@invisibled)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/loop-help-displaying-single-posts/#post-562141)
 * ohh ignore that about link in the menu, i’m tlaking about the page titles listed
   int he blue area sorry
 * [http://invisibled.com/polarexpressions.ca/](http://invisibled.com/polarexpressions.ca/)
 * yeah i’ve read all the documentation, and i think i am just missing somthing 
   small or doing somthing slighly wrong
 *  Thread Starter [invisibled](https://wordpress.org/support/users/invisibled/)
 * (@invisibled)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/loop-help-displaying-single-posts/#post-562147)
 * well i’ve figured out that when i query_posts(“cat=1”); out of the code everything
   works fine.
 * so now i just need to get it to display the certain categories properly

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

The topic ‘Loop help; displaying single posts’ is closed to new replies.

## Tags

 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [single](https://wordpress.org/support/topic-tag/single/)
 * [website](https://wordpress.org/support/topic-tag/website/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [invisibled](https://wordpress.org/support/users/invisibled/)
 * Last activity: [19 years, 1 month ago](https://wordpress.org/support/topic/loop-help-displaying-single-posts/#post-562147)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
