• Resolved Pastor Walt Mayhew

    (@wmayhewwalnuthillccorg)


    I have written a number of PHP programs to display events manager data displaying custom icons before event manager supplied data. When no events are returned I’d like to put out a custom message in each of the various programs, which right now echo nothing, but I can’t find instructions on how to do this anywhere. Can you please point me in the right direction.

    Thanks.

    P.W.

    https://www.ads-software.com/plugins/events-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Can you share the code you’re using?

    Thread Starter Pastor Walt Mayhew

    (@wmayhewwalnuthillccorg)

    Thank you very much for your quick response. I love your plugin.

    I bounced around the internet quiet a bit last evening and eventually found a solution that appears to be working using the following code

    <?php
    if ( ! EM_Events::count( array ('category' => $cat )) > 0  )
      {echo "No events scheduled";}
    else
    {echo (EM_EVENTS::output (array('category' => $cat,
      'format' => '

    Is this the most efficient means to the end?

    Looks like a great solution to me.

    Thread Starter Pastor Walt Mayhew

    (@wmayhewwalnuthillccorg)

    Great. Thank you very much for your assistance.

    Your tech support is very good.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘When No Events Retutned in PHP’ is closed to new replies.