Order gallery by attachment category’s slug
-
I would like to to order a gallery by the attachment category slug. I’m building a portfolio gallery with the ability to jump between categories of images. All categories are the child of the attachment category
work
. Here’s the gallery shortcode I have now:A navigation menu:
[mla_term_list \ taxonomy=attachment_category \ parent=3 \ mla_style=none \ mla_link_attributes='data-gallery-count={+count+} data-gallery-slug={+slug+}' \ mla_rollover_text='\n' \ ]
And a Gallery shortcode:
[mla_gallery \ itemtag="div" \ attachment_category=work \ orderby=attachment_category \ tax_include_children=true \ mla_style=none \ ]
The term list displays categories in alphabetical order, whereas the gallery displays the images in descending alphabetical order. Orderby doesn’t seem to support attachment_category as an option. If I can’t get the shortcode to do this, I suppose I can use javascript to sort by the attachment category slug. Any suggestions?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Order gallery by attachment category’s slug’ is closed to new replies.