• Resolved thor86

    (@thor86)


    Hi,

    Thank you again for this awesome plugin! I run into an issue and I hope you can help me with this.
    I am trying to filter the events using [events_list scope=”past” category=”1,5,6″ search=”test”] shortcode.
    The problem is that it displays the events that are in category 1 or 5 or 6 and I need to display the events that belong to category 1 AND category 5 AND category 6. I think that I could query the posts and use category__and, but I don’t know what should be the argument to query only the past posts/future posts. What do you think is the best way to accomplish that?

    Thanks!

    https://www.ads-software.com/extend/plugins/events-manager/

Viewing 3 replies - 1 through 3 (of 3 total)
  • category=”1,5,6″ limit the search to events in these categories? or you can also use negative numbers to exclude specific categories (e.g. -1,-2,-3)

    e.g.
    category id1 events are event A, event A1
    category id2 events are event B, event B1

    using the events list shortcode [events_list category=”1,2″]:
    row 1: event A
    row 2: event A1
    row 3: event B
    row 4: event B1

    Thread Starter thor86

    (@thor86)

    Hi, category=”1,5,6″ limit the search to the events in these categories. If event A belongs only to Category 1, event B belongs only to Category 5 and Event C belongs only to category 6, category=”1,5,6″ will limit the search to display: Event A, Event B, Event C. What I need to display is an empty result in this case, because Event A belongs only to category 1, and not category 5 and category 6. I need to apply and AND operator, and not an OR operator

    Thanks!

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    try e.g. 1,-5,-6

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Events Manager] display events that are in category A AND category B’ is closed to new replies.