Viewing 10 replies - 1 through 10 (of 10 total)
  • In template file e.g. event-single.php you can do like

    global $EM_Event;
    
    then to call a placeholder
    
    $EM_Event->output("#_BOOKINGFORM")
    Thread Starter roguecat

    (@roguecat)

    This is very helpful. Will follow-up with how I’ve used it. Thanks!

    is it possible to do this in the regular single-event.php?

    have a look at this : https://pastebin.com/c4zaNyJL its my single-event.php

    you have to copy the template folder to your themefolder … ??

    Thank you ??
    I found the solution!

    I create a new Object with the post id and then use the output function tu run the placeholders.

    $event = new EM_Event($post->ID);
    echo $event->output('#_EVENTNAME');

    you dont have to creat a new object, just global the existing one!

    and you dont have to run every placeholder through the output() function… just grab everything and put that into the output function…

    but if its working for you… great!

    i did it because im using a custon theme and the global object returns false ??
    didnt know why?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    better yet, use this function

    em_get_event(id, searchby)

    id is either event or post id and searchby default is ‘event_id’ and can be ‘post_id’. this function checks the globals and uses the WP cache as well.

    this really needs more documentation – I’d really like to be able to make my own templates – but can’t get my head round the conditionals

    Hi,

    can you give more details on the template that you’ve wanted?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: Events Manager] Using placholders with template tags’ is closed to new replies.