Viewing 6 replies - 16 through 21 (of 21 total)
  • Hi, tallavic!
    Apply this code in plugin and no result…
    maybe I do something not so?

    Thread Starter tallavic

    (@tallavic)

    I don’t know.
    Try to verify if you paste the code in the right file and place.
    Do you update the shortcode after paste the code?

    if ($ecs_cat) {
    			$ecs_event_tax = array(
    				array(
    					'taxonomy' => 'tribe_events_cat',
    					'field' => 'slug',
    					'terms' => $ecs_cat
    				)
    			);
    		}
    
    		if($atts['time'] == 'past')
    			$time = "<";
    		else $time = ">=";
    
    			echo $ecs_eventDate;

    looks so

    and shortcode
    [ecs-list-events cat=’category 1′ time=’past’ excerpt=’200′ ]

    Resolved! Thanks!
    Add after, to replace the existing code.

    Thread Starter tallavic

    (@tallavic)

    Perfetct!

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Show past events’ is closed to new replies.