WordPress.org

Ready to get started?Download WordPress

Forums

Shortcodes Ultimate
Sorting [subpages] (2 posts)

  1. screamstone
    Member
    Posted 1 year ago #

    is there a way to sort the pages using an attribute in the shortcode?

    It's displaying alphabetically, but I want it to sort by date posted (chronologically)

    http://wordpress.org/extend/plugins/shortcodes-ultimate/

  2. screamstone
    Member
    Posted 1 year ago #

    Just got a quick hack in...

    Just below line 741 in shortcodes.php add this:

    'sort_column' => 'post_date',

    That's my first ever wordpress plugin hack!!! Woo me!!

    But it would be REALLY cool if you made it into an attribute so you could choose the sort order from the list here:

    http://codex.wordpress.org/Function_Reference/wp_list_pages

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.