Events Made Easy Forums Bug fixed or feature request implemented Display Categories – AND not OR

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #42129
    Anonymous
    Inactive

    So I’ve figured out how to display events matching multiple categories, using [events_list category=17 category=42]. But, the problem here is that it shows me events that match category 17 OR category 42, but I want it to show me events that match category 17 AND category 42.

    Now, the reason I’m doing this is important only because someone might have a better solution. I want to be able to show, on a single page, something like this:

    One-Time Sporting Events:

    **Shows events that are not recurring.**

    All Sporting Events:

    **Shows all events regardless of recurrence.**

    So I have a NonRecurring category to accomplish this. Thoughts?

    #44918
    Franky
    Keymaster

    AND is currently not possible, but you can always try changing line 836 in dbem_events.php from

    conditions [] = "(".implode(' OR', $category_conditions).")";

    to

    conditions [] = "(".implode(' AND', $category_conditions).")";

    I’ll put this on the feature request list, shouldn’t be that hard to add …

    #44919
    Anonymous
    Inactive

    Perfect, that worked. Look forward to the future enhancement.

    #44920
    Anonymous
    Inactive

    Oh, and a HUGE thank you!

    #44921
    Franky
    Keymaster

    Btw: this works for OR categories: [events_list category=1,3]

    And in the trunk version I added this for AND: [events_list category=1+3]

    #44922
    Anonymous
    Inactive

    I can’t get the AND functionality to work, I have this [events_list category=1+3], but it’s display a list of all events, not just those in category 1 and 3. I’ve found the code in eme_events.php for the AND functionality, but it’s not working for me. Any suggestions?

    #44923
    Franky
    Keymaster

    This is/was a new bug, fixed now in trunk. You can download the latest version here:

    http://downloads.wordpress.org/plugin/events-manager-extended.zip

    #44924
    Anonymous
    Inactive

    First,Thanks for your share!

    Does Louis Vuitton have an outlet? Who really knows but you can find some really great deals whether you are looking for a LV authentic or replica.

    For more information please visit here

    louis vuitton alma

    louis vuitton artsy mm

    louis vuitton monogram canvas artsy gm

    louis vuitton neverfull

    louis vuitton artsy

    louis vuitton epi leather

    louis vuitton speedy 30

    louis vuitton luggage

    louis vuitton wallets

    guiyichm0607

    #44925
    Anonymous
    Inactive

    I’m working with version 3.3.5 and still it doesn’t perform right. The operand + works like OR, and even worst. It’s like you would indicate to include all categories!

    I’m using it in a shortcode in a page [events_list category=1+3] and it shows all the categories.

    Thanks a lot for you help (and awesome pluging)

    Regards

    #44926
    Franky
    Keymaster

    There’s a bug in 3.3.5 which has been fixed for the next version:

    * Bugfix: AND categories for [events_list] were no longer working and resulted in all categories being used

    So: wait for the next release or update to trunk: http://downloads.wordpress.org/plugin/events-manager-extended.zip

Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.
Scroll to Top