WordPress.org

Ready to get started?Download WordPress

Forums

Display Posts Shortcode
[resolved] Showing posts by first letter: first A, then B, then.. (2 posts)

  1. Kenneth Jensen
    Member
    Posted 2 years ago #

    Hi there

    First of all I would like to say thanks - this plugin is so simple and easy to use.

    What I need is an alphabetic list of all my posts. Quite easy with this plugin. But I would like to split the list between every letter.

    Example:

    A:
    A great day
    A great week
    A great wwww
    
    B:
    Be great
    Be worldclass
    
    ... and so on

    How can I do this? Is it possible to add something like this:

    display-posts startingwith="a" orderby="title"

    Thank you,
    Kenneth

    http://wordpress.org/extend/plugins/display-posts-shortcode/

  2. Bill Erickson
    Member
    Plugin Author

    Posted 2 years ago #

    The only way I know how to do this is to:
    - Create a taxonomy called "Post Title" or something similar
    - Create taxonomy terms for each letter: a, b, c...
    - Assign each post to the correct term (or you could write a function that does this for you on publish)
    - Use Display Posts Shortcode to show all posts inside a certain taxonomy term

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic