Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post Selector: Add option to adjust taxonomies relationship #855

Open
Misplon opened this issue Apr 8, 2019 · 0 comments
Open

Post Selector: Add option to adjust taxonomies relationship #855

Misplon opened this issue Apr 8, 2019 · 0 comments

Comments

@Misplon
Copy link
Member

Misplon commented Apr 8, 2019

This issue is an expansion of #752. The summary is to allow for a more advanced syntax in the Taxonomies field.

Add support the AND and OR relations directly in the field. I.e. the Taxonomies field would allow simple entries like

OR(category:quotes,post_format:post-format-quote)

which would be equivalent to what we have currently as

category:quotes,post_format:post-format-quote

and we could allow more complex nested queries like

OR(category:quotes,AND(post_format:post-format-quote,category:wisdom))

The general idea is to not add another field and just allow a slightly more complex syntax for advanced users.

Related forum thread: https://siteorigin.com/thread/syntax-for-requiring-multiple-categories-in-post-loop-taxonomy/. This comes up a couple of times a month.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant