Support » Plugin: Events Manager » [Plugin: Events Manager] if no events to show, return false

  • Resolved raskull

    (@raskull)


    I have written a shortcode wherein I don’t want EM_Events::output to display “No Events” if there aren’t any. Could you help me with the syntax? Maybe something like:

    if ( [there are no events] ) return false;
    else return EM_Events::output( $atts );

    Or maybe I need to filter EM_Events::output?

    I only want this when using the shortcode, not site-wide.

    Please help with the proper syntax! (As a point of reference, my shortcode is roughly based on your events_list shortcode.

    http://wordpress.org/extend/plugins/events-manager/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Events Manager] if no events to show, return false’ is closed to new replies.