Applying custom order to the front-end
-
Dear webbistro,
Thanks for such an useful plugin, I really like it.
I am trying to apply the custom order set in the CMS > Media Library to the front-end. However, from the following bit of text I understand that is not a functionality that is supported at the moment:
Order options. With two options “Order media items by” (Date, Title, and Custom Order) and “Sort order” (Ascending and Descending) you can control media items order for all screens of the media library in WP admin. “Custom Order” allows to re-order media items within a category with drag and drop. This order will be used, in particular, for the gallery based on this category. See Settings > Media > Media Library.
Would it be possible to pull the custom order into parameters for a custom WP_Query such as the following?
$the_query = new WP_Query( array( 'post_type' => 'attachment', 'post_mime_type' => 'image', 'posts_per_page' => 20, 'post_status' => 'any', 'category__and' => $cats_wanted, 'paged' => $paged ) );
If not, could you give us some info about how the order is being stored? As postmeta perhaps?
Thank you,
Manu.
- The topic ‘Applying custom order to the front-end’ is closed to new replies.