WordPress.org

Forums

Shortcodes Ultimate
Sorting [subpages] (2 posts)

  1. screamstone
    Member
    Posted 2 years 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 2 years 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

  • Shortcodes Ultimate
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.