Thanks for your question and for the additional explaination of how you want to use the “Deleted” tag. The logic is clear, but it cannot be applied using the “Simple Taxonomy Parameters” that [mla_gallery]
supports.
You can accomplish your goal with the more powerful tax_query
syntax I mentioned in your earlier support topic:
Syntax problem for Jetpack gallery with ‘AND’ tags
Your first example can be coded as something like:
<code>[mla_gallery tax_query="array( 'relation' => 'AND', array( 'taxonomy' => 'attachment_category', 'field' => 'slug', 'terms' => array( 'cat1' ), ), array( 'taxonomy' => 'attachment_tag', 'field' => 'slug', 'terms' => array( 'deleted' ), 'operator' => 'NOT IN', ), ), )" ... ]</code>
If you want to filter on both Att. Category and Att. Tag and then add the “Deleted” tag, you can try something like:
<code>[mla_gallery tax_query="array( 'relation' => 'AND', array( 'taxonomy' => 'attachment_category', 'field' => 'slug', 'terms' => array( 'cat1' ), ), array( 'taxonomy' => 'attachment_tag', 'field' => 'slug', 'terms' => array( 'red', 'blue' ), ), array( 'taxonomy' => 'attachment_tag', 'field' => 'slug', 'terms' => array( 'deleted' ), 'operator' => 'NOT IN', ), )" ... ]</code>
Be sure to follow the rules in the earlier topic for entering these complicated shortcodes.
The only potential disadvantage I can see to using these tax_query
parameters is that WordPress translates them to SQL using table JOIN operators. This can have performance implications if you have large numbers of items, categories or tags. If the performance of the above suggestions is not acceptable, let me know and I can work with you on a higher performance (but even more complicated) alternative.
I hope that gets you started with your application. I am marking this topic resolved, but please update it if you have problems or further questions regarding the above suggestions.