WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Older and newer posts links show up on single pages (3 posts)

  1. thatjohnpaul
    Member
    Posted 1 year ago #

    Hello,

    I was wondering if someone could help me modify my code so that the "older posts" and "newer posts" links show up only on the blog homepage and not on single blog posts? (Right now the older posts link isn't showing up because I only have the posts to fill up one page at the moment, FYI.) Thanks in advance!

  2. nazzilla
    Member
    Posted 1 year ago #

    in single page work only next post/previus post
    code is

    <?php previous_post('&laquo; &laquo; %', '', 'yes'); ?>
    | <?php next_post('% &raquo; &raquo; ', '', 'yes'); ?>

    put it in single.php

    more info here

  3. thatjohnpaul
    Member
    Posted 1 year ago #

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic