WordPress.org

Forums

Documents Shortcode
[resolved] How to sort items in list? (4 posts)

  1. fran klin
    Member
    Posted 2 years ago #

    Is it possible to sort items in list alphabetically or by menu order?

    http://wordpress.org/extend/plugins/documents-shortcode/

  2. rait56
    Member
    Posted 2 years ago #

    Yap frn..is it possible...if you want you can try this....

  3. fran klin
    Member
    Posted 2 years ago #

    35a36,37
    > 	$order_by = "&orderby=menu_order";
    > 	$order_ad = "&order=ASC";
    37c39
    < 	$kids =& get_children( 'post_type=attachment&post_parent=' . get_the_id() . $mime);
    ---
    > 	$kids =& get_children( 'post_type=attachment&post_parent=' . get_the_id() . $mime . $order_by . $order_ad);

    may be helpful for someone

  4. toccia
    Member
    Posted 2 years ago #

    Hello fran klin,
    could you tell me where should I insert that code in order to make it list alphabetically?
    Many thanks!!!
    F.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Documents Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.