• Hi.

    I am looking for an answer, please complete answer. How to go in to the calender page and create a code that checks the categoryid to see wich category it is so i can make an IF code depending on wich category it is.

    Like:

    <?php if(#_CATEGORYID == 15) {
    echo <img>;
    } elseif(#CATEGORYID == 16) {
    echo <different img>;
    } ?>

    I am looking everywhere for this and I cant find it. I want to add this code into the em_calender_full.php so that this img shows togheter with the link in the full calender mode.

    Can anyone help me?

Viewing 3 replies - 1 through 3 (of 3 total)
  • you can try to use calendar templates (calendar-full.php or calendar-small.php) or create a custom function using hooks and filters.

    http://wp-events-plugin.com/documentation/
    http://wp-events-plugin.com/tutorials/

    you’re confusing what placeholders do., these can only be used on event formats, not PHP like this.

    cant give you a full example, but you want to use the event objects via php and use something like $EM_Event->get_categories() and use that to determine the cats it belongs to.

    Thread Starter tjote.petersson@gmail.com

    (@tjotepeterssongmailcom)

    Thank you for your answers.

    The problem is that I cant figure this out by myself so I might need a full example.

    Can anyone provide an example how to do what Marcus is saying with the intention to use the ID of the category in the event shown and compare this so I can show different things based on what category the event is placed in?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Events manager Categories’ is closed to new replies.