[Plugin: Inline PageList] Sort order of lists (4 posts)

  1. Luke Gedeon
    Posted 7 years ago #

    Are you working on a way to sort the list alphabetically, chronologically, or custom order?

    I need all three for two projects, but did not want to spend time doing it if you already have this or are working on it.


  2. MichaelH
    Posted 7 years ago #

    Also might look at using this plugin http://justintadlock.com/archives/2009/03/24/template-tag-shortcodes-wordpress-plugin

    Then you can use the sort_column parameter of template tag, wp_list_pages().

  3. Txanny
    Posted 7 years ago #

    In version 1.5, just released, you have some filters to change the sort for the lists.

    The data received from filters are passed directly to the WordPress query. And as it changes the query ordering, it changes also which posts are shown.

    You can see what filters are available and how to use them at this page: http://alkivia.org/plugins/pagelist/filters-and-actions/

    Don't know if that will do your job as you have to code some lines. There you will find also a link to how to create your filters plugin.

  4. Txanny
    Posted 7 years ago #

    Well, as Michael said, that are just what the filters of this plugins do:

    The filters for pages set the sort_column and sort_order as arguments for wp_list_pages().

    The filters for posts, set the 'order' and 'orderby' as arguments for the posts query.

Topic Closed

This topic has been closed to new replies.

About this Topic