Get a free trial // Grow your CSS skills // Land your dream job

How to add prev page, and next page of posts on WordPress?

  • # June 7, 2013 at 2:35 pm

    I want to add previous pagem and next page links on my footer, so I can limit each page to only 5 posts. I DON’T want next post, and previous post. I tried putting this in, and out of the WP loop.. but still not working!

    < ?php posts_nav_link('separator','prelabel','nextlabel'); ?>

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed