WordPress.org

Ready to get started?Download WordPress

Forums

Adding link navigation to top of pages (4 posts)

  1. Bunglegirl
    Member
    Posted 8 years ago #

    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?

    Thanks

  2. iand
    Member
    Posted 8 years ago #

    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.

  3. moshu
    Member
    Posted 8 years ago #

    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.

  4. Bunglegirl
    Member
    Posted 8 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.