Support » Plugin: My Content Management » Combine multiple terms in shortcode

  • bfisseler

    (@bfisseler)


    Hi,

    is it possible to combine multiple terms like this?
    term='(cat1 OR cat2) AND cat3'

    I want to display the Person entries of people who belong either to cat1 or cat2, and are all in cat3.

    Kind regards

    Bjoern

Viewing 1 replies (of 1 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    It’s possible to use multiple terms and an operator; terms would be comma-separated and the operator is entered using the ‘operator’ attribute in the shortcode. However, it’s not possible to use mixed operators to do a query like what you’re trying to do.

    If you know what you’re doing with WP_Query arguments, you can use the ‘mcm_pre_query_args’ filter to do your own customization of the queries, but it’s not an option in the shortcode.

Viewing 1 replies (of 1 total)
  • The topic ‘Combine multiple terms in shortcode’ is closed to new replies.