• Resolved michaelwellnerwp

    (@michaelwellnerwp)


    In my taxonomy template, I have the following code:

    <div class="row">
       <?php
       echo do_shortcode('[events_list scope="future" limit="10" category="'.$EM_Category->output('#_CATEGORYID').'"][/events_list]');
       ?>
    </div>

    How can I catch with php with an if else construction if an empty result is returned? I would like to display custom HTML if no results are returned.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How can I catch empty result of [events_list]?’ is closed to new replies.