wp_query sorted gallery
-
I’m struggling with getting an MLA gallery using custom
wp_querycode properly sorted. Figured I need to sort images out using two categories; one’s visible (e.g.prints), and the other’s hidden and just aids defining their priority (e.g.top). That way chosen images would get displayed first on top of the others. For example:$tax_query = "array( 'relation' => 'OR', array( 'taxonomy' => 'attachment_category', 'field' => 'slug', 'terms' => array( 'prints','top' ), 'orderby' => 'terms' 'operator' => 'IN', 'include_children' => true ))'";I need the proper
wp_querysyntax to show all thetopcategory images first, and theprintscategory images second (while excluding anything else).Would you please hint what I need to fix in the snippet above?
Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘wp_query sorted gallery’ is closed to new replies.