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

Paginate Posts by Letter?

  • # January 3, 2013 at 2:49 pm

    Hi all, I’m working on a project for a client who has a wordpress site and they have a ton of posts that need to be displayed alphabetically so the user could click on “A” or “B” and have a page of those posts pop up by name.

    I’ve pieced together a method of querying posts by a first letter, but I don’t know where to begin to try and put something together that would be a lot cleaner where you just had a list of letters the user could click on and it would return those posts without creating a ton of page templates.

    Anyone have any ideas on where to start to figure something like this out?

    # January 4, 2013 at 3:49 am

    This reply has been reported for inappropriate content.

    I’ve never actually done the alphabetical pagination before. This looks promising:

    # January 4, 2013 at 12:43 pm

    This reply has been reported for inappropriate content.

    Thanks man! I just found that too this morning and was reading one of the links :) I’ve never done anything like this before, so it’s a little daunting :P

    # January 4, 2013 at 1:57 pm

    Very cool idea, Josh – let us know how you get on!

    # January 4, 2013 at 2:00 pm

    This reply has been reported for inappropriate content.

    Will do!

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