Title: OLDER POSTS function not working
Last modified: August 20, 2016

---

# OLDER POSTS function not working

 *  Resolved [zeelifestyle](https://wordpress.org/support/users/zeelifestyle/)
 * (@zeelifestyle)
 * [15 years ago](https://wordpress.org/support/topic/older-posts-function-not-working/)
 * whenever i click on my previous posts/new posts it just loads the most recent
   ones…
 * [http://zeelifestylecebu.com](http://zeelifestylecebu.com)
 * this is the script in my index.php… help pls
    _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_

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

 *  Thread Starter [zeelifestyle](https://wordpress.org/support/users/zeelifestyle/)
 * (@zeelifestyle)
 * [15 years ago](https://wordpress.org/support/topic/older-posts-function-not-working/#post-2125161)
 * here’s my syntax
 * [http://pastebin.com/0STH5kgH](http://pastebin.com/0STH5kgH)
 * please lemme know what’s wrong…. 🙁
 *  Thread Starter [zeelifestyle](https://wordpress.org/support/users/zeelifestyle/)
 * (@zeelifestyle)
 * [15 years ago](https://wordpress.org/support/topic/older-posts-function-not-working/#post-2125162)
 * the previous/next page function doesn’t work… thanks.
 *  Thread Starter [zeelifestyle](https://wordpress.org/support/users/zeelifestyle/)
 * (@zeelifestyle)
 * [15 years ago](https://wordpress.org/support/topic/older-posts-function-not-working/#post-2125181)
 * little help please
 *  Thread Starter [zeelifestyle](https://wordpress.org/support/users/zeelifestyle/)
 * (@zeelifestyle)
 * [15 years ago](https://wordpress.org/support/topic/older-posts-function-not-working/#post-2125192)
 * help 🙁
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years ago](https://wordpress.org/support/topic/older-posts-function-not-working/#post-2125194)
 * there seems to be nothing wrong with the code of index.php; however, this problem
   could be caused by the code of the ‘cover story’ section;
 * can you paste this as well?
 *  Thread Starter [zeelifestyle](https://wordpress.org/support/users/zeelifestyle/)
 * (@zeelifestyle)
 * [15 years ago](https://wordpress.org/support/topic/older-posts-function-not-working/#post-2125209)
 * sure.these are the corresponding codes for the template
 * HEADER.PHP
    [http://pastebin.com/Pj5eshr0](http://pastebin.com/Pj5eshr0)
 * PAGE.PHP
    [http://pastebin.com/GKjudwyx](http://pastebin.com/GKjudwyx)
 * SEARCH.PHP
    [http://pastebin.com/ZJ7GguLv](http://pastebin.com/ZJ7GguLv)
 * SINGLE.PHP
    [http://pastebin.com/7zttZJFw](http://pastebin.com/7zttZJFw)
 * FUNCTIONS.PHP
    [http://pastebin.com/WQ9xA42a](http://pastebin.com/WQ9xA42a)
 * HOME.PHP
    [http://pastebin.com/554Cix9c](http://pastebin.com/554Cix9c)
 * thanks for helping out.. 🙂
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years ago](https://wordpress.org/support/topic/older-posts-function-not-working/#post-2125214)
 * edit home.php, find: (line 84)
 * `<?php query_posts('cat=1'); ?>`
 * change to:
 *     ```
       <?php global $query_string; query_posts($query_string . '&cat=1'); ?>
       ```
   
 * changes are similar to: [http://codex.wordpress.org/Function_Reference/query_posts#Usage_Note](http://codex.wordpress.org/Function_Reference/query_posts#Usage_Note)
 * also of interest:
    [http://codex.wordpress.org/Template_Hierarchy](http://codex.wordpress.org/Template_Hierarchy)
 *  Thread Starter [zeelifestyle](https://wordpress.org/support/users/zeelifestyle/)
 * (@zeelifestyle)
 * [15 years ago](https://wordpress.org/support/topic/older-posts-function-not-working/#post-2125215)
 * OMG! It works now.
 * Thank you soooo much!

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

The topic ‘OLDER POSTS function not working’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 2 participants
 * Last reply from: [zeelifestyle](https://wordpress.org/support/users/zeelifestyle/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/older-posts-function-not-working/#post-2125215)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
