The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

wordpress posts per page

  • # September 10, 2012 at 3:58 am

    Is there a way to let a user choose the number of posts per page? I found a plugin that does it ‘DB Posts per page’ but it changes the backend as well. I’ve exhausted google with no luck.

    # September 17, 2012 at 2:46 pm

    Perhaps using a filtering mechanism? For example for a site we gave users a few options to sort the posts on the page (by recent posts, oldest, alphabetical, etc).

    So here is an example of how I did it for sorting a resource library:

    Put the code on pastebin since I couldn’t get the markdown to work for coding:

    Two examples:

    I hope that makes sense, and can help you. :)


Viewing 2 posts - 1 through 2 (of 2 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