Grow your CSS skills. Land your dream job.

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

    I’ve never actually done the alphabetical pagination before. This looks promising: http://wordpress.stackexchange.com/questions/41660/how-to-build-a-directory-with-indexes-in-wordpress/

    # January 4, 2013 at 12:43 pm

    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

    Will do!

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

You must be logged in to reply to this topic.

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