Title: Post Navigation
Last modified: August 18, 2016

---

# Post Navigation

 *  [mliving](https://wordpress.org/support/users/mliving/)
 * (@mliving)
 * [21 years ago](https://wordpress.org/support/topic/post-navigation/)
 * My post navigation menu uses the post’s title and it looks really bad when you
   get a post title of any size.
 * Is there a way I can modify the Archive template “navigation” to simple use <
   <Previous || Home || Next >>.
 * Previous = Previous post
    Home = Archive home page or site home page Next = Next
   Post – if none back to Post Archive home.
 * Thanks
    mliving

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

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years ago](https://wordpress.org/support/topic/post-navigation/#post-215726)
 * This may help – it’s what I had on my site (might still be there in fact)
 * `The code that appears at the top of a page when a single entry is viewed.`
 *  <?php if ($single) { ?>
    <div class="cent"> <?php previous_post('%', '', 'yes','
   no', 1, '') ?> > > || <a href="[http://www.tamba2.org.uk/T2&quot](http://www.tamba2.org.uk/T2&quot);
   title="Home">Home</a> || < < <?php next_post('%', '', 'yes', 'no', 1, '') ?> 
   <br /> <br /> </div> <?php } ?>
 * that is in ‘index.php’, directly above `<div class="post">`
 *  Thread Starter [mliving](https://wordpress.org/support/users/mliving/)
 * (@mliving)
 * [21 years ago](https://wordpress.org/support/topic/post-navigation/#post-215731)
 * Sorry but is the index.php page the one used by all pages in the site or just
   the “posts”?
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years ago](https://wordpress.org/support/topic/post-navigation/#post-215734)
 * The one above is just the posts one
 *  Thread Starter [mliving](https://wordpress.org/support/users/mliving/)
 * (@mliving)
 * [21 years ago](https://wordpress.org/support/topic/post-navigation/#post-215748)
 * It worked but my Home page link does not appear.
 * Also, is there a way I can just use the words “Previous” and “Next” instead of
   the text from the post title?
 *  Thread Starter [mliving](https://wordpress.org/support/users/mliving/)
 * (@mliving)
 * [21 years ago](https://wordpress.org/support/topic/post-navigation/#post-215758)
 * Correction.
 * I have not been able to get this working.
 * Is this how it is supposed to be inserted into the index.php file:
 * <?php get_header(); ?>
 *  <div id=”content” class=”narrowcolumn”>
 *  <?php if (have_posts()) : ?>
 *  <?php while (have_posts()) : the_post(); ?>
 *  <div class=”post” id=”post-<?php the_ID(); ?>”>
    <?php if ($single) { ?> <div
   class=”cent”> <?php previous_post(‘%’, ”, ‘yes’, ‘no’, 1, ”) ?> >> || [Home](http://theboys3/wordpress/?cat=3)
   || << <?php next_post(‘%’, ”, ‘yes’, ‘no’, 1, ”) ?>
 * </div>
    <?php } ?> <!–<h2>” rel=”bookmark” title=”Permanent Link to <?php the_title();?
   >”><?php the_title(); ?></h2>–>
 * Thanks
    mliving
 *  Thread Starter [mliving](https://wordpress.org/support/users/mliving/)
 * (@mliving)
 * [21 years ago](https://wordpress.org/support/topic/post-navigation/#post-215763)
 * Does this bit of code control the post to post navigation?
 * <div class=”navigation”>
    <div class=”alignleft”> <?php next_posts_link(‘« Previous
   Entries’) ?></div> <div class=”alignright”> <?php previous_posts_link(‘Next Entries»’)?
   ></div>
 * If so can I not make it show the following:
    <<Previous || Home || Next >>
 * Nothing I do to the Main Template (index.php) file seems to make a difference.
 * Thanks
    mliving
 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [21 years ago](https://wordpress.org/support/topic/post-navigation/#post-215765)
 * I believe the tag you use only takes effect in single-post view. To navigate 
   between pages in frontpage, you may want to use the following.
    [http://codex.wordpress.org/Template_Tags/posts_nav_link](http://codex.wordpress.org/Template_Tags/posts_nav_link)

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

The topic ‘Post Navigation’ is closed to new replies.

 * 7 replies
 * 3 participants
 * Last reply from: [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * Last activity: [21 years ago](https://wordpress.org/support/topic/post-navigation/#post-215765)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
