Forums

Why doesn't 'previous', 'next' links appear on landing page? (4 posts)

  1. dinneenp
    Member
    Posted 2 years ago #

    Hi,
    patrick.dinneen.com
    I've added text links in header for next, previous amongst others. These work fine expect on the landing page (latest post), I presume it's something to do with the fact that there isn't any next image...can anyone help.
    Below is the code.
    Thanks,
    Patrick

    {noformat:nopanel=true}
    <ul id="menu">

  2. <?php previous_post('%', 'PREVIOUS ', 'no'); ?>
  3. <?php next_post('%',' NEXT', 'no'); ?>
  4. random
  5. /<?php echo mysql2date('Y', get_lastpostdate('blog')); ?>/">archive
  6. /about/">about
  7. {noformat}

  • esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    These work fine expect on the landing page

    Try looking about two thirds of the way down the page on the right hand side. There's your "Previous" link. Remember to do a hard refresh (CTRL/F5) when viewing the page or empty your browser cache to ensure that you are seeing a fresh copy.

  • dinneenp
    Member
    Posted 2 years ago #

    Sorry if there's any confusion.
    I'd added code for previous and next (and random) and put this code in the header (next to archive and about). If you go to any page expect landing page you'll see it in the header (I'm not talking about the < and > icons.
    Thanks again,
    Patrick.

  • esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Ah! previous_post() and next_post() are deprecated - which means they may not be supported in more recent versions of WP. Try next_posts_link() and previous_posts_link().

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags