• Resolved shaunbowen

    (@shaunbowen)


    Hi there, when using the ‘Posts Grid’ widget from Livemesh, I can successfully exclude a single category using an additional query like:

    category__not_in=9

    However, I can’t figure out the syntax for excluding multiple categories. The WordPress ‘Query Posts’ info doesn’t really help with this.

    The developer at Livemesh said this when I inquired on their support section here:

    You can to ask this question in SiteOrigin forum. May be they parse the arguments into an array if you provided comma separated values since the parameter expects an array if you want to exclude multiple categories. Pls check with them once since we just use their standard query controls provided by SiteOrigin to accomplish this.

    Pls let me know if no such option exists. I will try to provide a solution which filters the query programmatically in your child theme.

    livemesh (@livemesh)
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter shaunbowen

    (@shaunbowen)

    I have actually managed to figure it out based on some deep Google searching! The syntax should actually be:

    cat=-9,-179,-180,-181,-182,-183,-184

    I will mark this as resolved.

    Plugin Support Andrew Misplon

    (@misplon)

    Hi Shaun

    Thanks for keeping us updated; I’m glad to see you’ve made progress, and the query is now working as expected. Cheers, Andrew.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Livemesh Posts Grid Widget – Exclude Multiple Categories’ is closed to new replies.