Support » Fixing WordPress » Adding link navigation to top of pages

  • After watching my mom navigate my site I’ve decided I need to add some navigation. Part of this is because she is used to my Movable Type installation and doesn’t know how to navigate without the extra navigation links at the top. I have a lot of older readers and I’m afraid they will be very confused.

    I’m sure it’s just a matter of adding some code, but after looking through the docs, I’m not sure just what I should use.

    I’m trying to replicate the link navigation you would see on a Movable Type blog on a single page, archive page, category page etc. Basically it was on any page besides the main blog page. The format was:

    << Previous post title | Main | Next post title >>

    Can anyone direct me to the appropriate code (and where to put it) to make this happen?


Viewing 3 replies - 1 through 3 (of 3 total)
  • The code you need is something like:
    <?php previous_post('&laquo; %', '') ?> | <a href="<?php bloginfo('url'); ?>">Home</a> | <?php next_post('% &raquo;', '') ?>
    See this codex page for more information.

    On where to put it, it needs to go somewhere inside The loop though exactly where is up to you. Probably just after your <?php the_date(); ?>tag would be a good start.

    It always depends on the theme. Without a link and without having details about your theme – we are in the dark 🙂

    Except the middle “main” the nexp/prev posts link is present in many themes on the single post view.
    There is also next/prev link (true, usually at the bottom) when browsing monthly or category archives.

    Ah, well the theme is something I came up with based on fBlue. I wasn’t sure if I could post links based on the “allowed tags” below.

    Here it is

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding link navigation to top of pages’ is closed to new replies.