Grow your CSS skills. Land your dream job.

WordPress link to old blog posts

  • # June 20, 2013 at 1:11 pm

    Hi,

    I have a page called page-blog.php that I’ve used WP_Query to display the six post recent blog posts which is working fine.

    I want to create a link at the bottom of these six posts to older entries. I’ve tried next_posts_link and nothing appears. What am I doing wrong?

    Cheers

    # June 20, 2013 at 1:29 pm

    Did you use next_post_link within the loop? and what arguments did you pass in ?

    # June 20, 2013 at 1:42 pm

    To show older, shouldn’t you use previous_posts_link instead of next_posts_link?

    # June 20, 2013 at 8:00 pm

    I tried both next and previous. Code was outside of the wp query loop as that was just repeating it six times when inside my loop.

    I just used next_posts_link(‘Older Entries »’, 0);

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".