Title: previous_post_link problem
Last modified: August 19, 2016

---

# previous_post_link problem

 *  [rjett](https://wordpress.org/support/users/rjett/)
 * (@rjett)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/previous_post_link-problem/)
 * I have tried to edit my code so that the previous_post_link function displays
   the text “Previous” on my site instead of the actual title of the article. I’ve
   looked at [http://codex.wordpress.org/Template_Tags/previous_post_link](http://codex.wordpress.org/Template_Tags/previous_post_link)
   and tried to follow the directions there by editing the function accordingly 
   in archives.php, but the changes are not showing up. Does anybody know what might
   be wrong?

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

 *  [Jon Dingman](https://wordpress.org/support/users/jdingman/)
 * (@jdingman)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/previous_post_link-problem/#post-1246493)
 * Would you pastebin your existing code so we can see what you’re doing?
 * thx
 *  Thread Starter [rjett](https://wordpress.org/support/users/rjett/)
 * (@rjett)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/previous_post_link-problem/#post-1246516)
 * The original code is as follows:
 *     ```
       <div class="navigation">
       			<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
       			<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
       		</div>
       ```
   
 * Here’s what I tried (unsuccessfully) to get it to just say ‘next’ or ‘previous’:
 *     ```
       <div class="navigation">
                <div class="alignleft"><?php next_post_link('%link', 'Next', TRUE); ?></div>
                <div class="alignright"><?php previous_post_link('%link', 'Previous', TRUE); ?></div>
            </div>
       ```
   
 * Again, I believe I followed the directions perfectly on [http://codex.wordpress.org/Template_Tags/previous_post_link](http://codex.wordpress.org/Template_Tags/previous_post_link).
   These changes were made in the archives.php file. Is there another file that 
   should be edited?
 *  Thread Starter [rjett](https://wordpress.org/support/users/rjett/)
 * (@rjett)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/previous_post_link-problem/#post-1246624)
 * Someone…anyone?
 *  [elainevdw](https://wordpress.org/support/users/elainevdw/)
 * (@elainevdw)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/previous_post_link-problem/#post-1246797)
 * The top code should work, except you need to use next_post**_s_**_link (posts
   plural, not posts singular).

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

The topic ‘previous_post_link problem’ is closed to new replies.

## Tags

 * [Archives.php](https://wordpress.org/support/topic-tag/archives-php/)
 * [next_post_link](https://wordpress.org/support/topic-tag/next_post_link/)
 * [previous_post_link](https://wordpress.org/support/topic-tag/previous_post_link/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [elainevdw](https://wordpress.org/support/users/elainevdw/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/previous_post_link-problem/#post-1246797)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
