Order Attachment Slides by Menu Order
I mostly use the Attachment slideshow functionality from WooSlider to automatically grab the images attached to a page and create a slideshow. It would be nice if the default Wordpress drag-and-drop reordering could be used to change the order of the slides. I temporarily added this functionality by editing the query in class-wooslider-sliders.php to include the "orderby" => "menu_order" parameter.
Thanks for your suggestion, Steve. We’ll be looking further into this. :)
6 comments
-
Rae Nester commented
love this and thank you for detailing the change!
-
Christa
commented
I added 'orderby' => 'menu_order', 'order' => 'ASC', to line 125, so total section reads $query_args = array( 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'post_parent' => intval( $args['id'] ), 'numberposts' => intval( $args['limit'] ) );
$attachments = get_posts( $query_args );seems to be working!
-
Robert
commented
I vote for this one!
-
Greg
commented
This functionality would take this already great plugin to the next level. Big 3 votes for me.
-
Alexandru Vladoiu
commented
@Steve - do you mind sharing the hack? I'm not a programmer so I don't really know where (apart from class-wooslider-sliders.php) to add this line(s).
Thank you!
-
Alexandru Vladoiu
commented
Yes, this would be really useful!