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">
<?php previous_post('%', 'PREVIOUS ', 'no'); ?>
<?php next_post('%',' NEXT', 'no'); ?>
random
/<?php echo mysql2date('Y', get_lastpostdate('blog')); ?>/">archive
/about/">about
{noformat}
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.
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().