• Resolved stuartcr

    (@stuartcr)


    Hi all,

    i’ve very well versed with Advanced Custom Fields Plugin, i call my data <?php the_field=”my data” ?> or a shortcode.

    but this plugin is strange:

    I’m great difficulty rendering the “placeholders” this plugin provides:

    #_LOCATIONMAP
    #_EVENTDATES
    #_EVENTTIMES
    {has_location}
    #_LOCATIONLINK
    {/has_location}
    #_CATEGORIES
    #_EVENTNOTES
    {has_bookings}
    #_BOOKINGFORM
    {/has_bookings}

    i would like to be able to render any of the above.

    if i place any of the above “placeholders” in to my template, they do not render and would like to know why?

    they render on this event, in the section on the page predefined by the plugin, but i would like to move them, but it does not work.. why?

    https://hymb.com/wp-content/uploads/2021/03/Screenshot-2021-03-24-at-14.23.26.png

    can they be called with php like:

    <?php em_events=”#_EVENTTIMES” ?> or something similar?

    for me this seems like it should be very simple, i have just never used a plugin that just uses “placeholders”

    can anyone help please?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hello,

    To use placeholders on template files, You’ll need to do something like:

    Simple Way
    Put them inside a shortcode. You can use do_shortcode of WordPress to echo those.

    [event post_id="123"]My selected event is called #_EVENTNAME[/event]

    VIA CODE

    <?php echo $EM_Event->output(‘#__EVENTTIMES’); ?>

    <?php echo $EM_Booking->output(‘#_BOOKINGID’); ?>

    You would need to use either EM_Event or EM_Booking depending if they are Events or Booking related placeholders. More information can be found here https://wp-events-plugin.com/documentation/placeholders/

    You can do something like to get the object EM_Event
    $EM_Event = em_get_event( $event_id );

    The same goes for Em_Booking

    $EM_Booking = em_get_booking( $booking_id );

    I would like to let you know also that currently We’re very limited in terms of custom coding. https://eventsmanagerpro.com/support-policy/

Viewing 1 replies (of 1 total)
  • The topic ‘how to render event placeholders outside of the plugins defined areas’ is closed to new replies.