Viewing 11 replies - 1 through 11 (of 11 total)
  • I have the same need and cannot figure out a way to do this. Is the plugin capable of pulling multiple (but not all) categories into one list?

    It doesn’t take 2 categories..
    One way code that makes it work with 1 or more is to modify the code around line 81 with

    if ($ecs_cat) {
    			$ecs_cats = explode(",", $ecs_cat);
    			$ecs_event_tax = array(
    				array(
    					'taxonomy' => 'tribe_events_cat',
    					'field' => 'slug',
    					'terms' => $ecs_cats
    				)
    			);
    		}

    Then you can give the multiple cats like this:
    [ecs-list-events cat=’general-board, committee-meeting’ events limit=’4′]

    We have added multiple categories to the plugin now.

    I will mark this as resolved. Do let us know if you have any problems.

    Thanks Ruth. Unfortunately, the update didn’t work for me. After adding two categories, the list says, “There are no upcoming events at this time.”

    Here’s the page:
    https://www.marshalldistrictlibrary.org/youth/

    This is the shortcode I am using:
    [ecs-list-events cat=’teens, kids’]

    Hopefully I’m not missing something stupid.

    ah okay sorry – I’ll have a look.

    Thank you. We just switched our url so the page can now be found here:

    https://yourmdl.org/youth/

    Exact same problem as above. When using two categories, upon the latest plugin update, I now get “There are no upcoming events at this time.”

    Samara, do you have an update available? It was updated a couple of hours ago and that fixed the issue for me.

    I actually think the last update caused the problem for me. I thought it was due to an event being in two categories, but even if I just have it in one category (the one that the shortcode should display) it doesn’t show anything.

    Can you try this?

    Add an s to cat so it is cats plural when you want two categories and singular cat when only using one category.

    This is working on my dev site

    Two Categories
    [ecs-list-events cats=’readings,webinars’]

    Readings
    [ecs-list-events cat=’readings’]

    Webinars
    [ecs-list-events cat=’webinars’]

    Thread Starter mvaneijgen

    (@mvaneijgen)

    As soon as I add a second cats the shortcode will just loop trough all the events. This is what the code looks like [ecs-list-events cats='Zaal 2,Zondag' thumb='true']

    For test I have 3 events, one with no cat and two with the cat: Zaal 2 and one of them also has the cat: Zondag, but the code above will just show all my Events

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Show evenets who have both categories’ is closed to new replies.