WordPress.org

Ready to get started?Download WordPress

Forums

Alphabetical Pagination (2 posts)

  1. danhodkinson
    Member
    Posted 1 year ago #

    Hi all,

    I've created a custom post type which will contain a couple of hundred different options. As well as sorting by the taxonomy I am trying to create an A-Z list which takes the first letter of the each post. like so

    A B C D E F G... (etc)

    B:
    Ben
    Bill
    Boris

    I don't think there are any wordpress functions for this so I presume I will need to make a loop going through the alphabet, but i'm not sure how i will get it to actually show those one's beginning with the selected letter.

    Any advice is much appreciated

    Thanks
    dan

  2. vtxyzzy
    Member
    Posted 1 year ago #

    Here is an article with a sample template that shows one method of doing this: http://wordpress.mcdspot.com/2011/11/27/template-to-list-posts-by-first-letter-of-title-1-letter-per-page/

    You must adapt the code to your own theme.

Topic Closed

This topic has been closed to new replies.

About this Topic