Support » Plugin: Documents Shortcode » How to sort items in list?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Yap frn..is it possible…if you want you can try this….

    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

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to sort items in list?’ is closed to new replies.