TAX_OPERATOR=AND
-
It seems that the taxonomy operator for the MLA gallery applies to categories OR tags, but not both at the same time.
For example, if I have the following code to display a list of PDF files:
[mla_gallery post_mime_type=application/pdf post_parent=all columns=1 link=file size=none mla_markup=ul ?attachment_category=’A’,’B’ attachment_tag=1,2 tax_operator=AND orderby=”title ASC”]It will show PDFs that are in Category A AND B (regardless of tag)… as well as PDFs that are tagged 1 AND 2 (regardless of category).
This means if I have category C but tagged 1 and 2, then it will appear in my list.
What I really want is category=A and category=B and tag=1 and tag=2. Why do I want this? Consider that I gives my PDFs with a category as well as tags for month and year. If I want to display PDFs of a specific category for June 2013 and another list of the same category for July 2012… this becomes impossible to do.
I’d like to know if there is a way to make my query match ALL tags and ALL categories both together? Otherwise I have to either switch to 100% categories, or 100% tags, both of which aren’t the most desirable solution.
Please help!
https://www.ads-software.com/plugins/media-library-assistant/
- The topic ‘TAX_OPERATOR=AND’ is closed to new replies.