How do I access EM variables such as title and time started
-
I am trying to create a very simple list of the events that fulfil a particular criteria, without having to output more than just a particular attribute. I have spent days looking through the support site and perusing through the code, but can’t seem to find a simple way to access event attributes. For instance I would to query for the upcoming events, and have the result output in a list format as follows:
<div class='single-event'> <div class="event-date'>[the_date_for_the_event]</div> <div class='event-img'>[the_image_for_the_event]</div> <div class='event-title'>[the_title_for_the_event]</div> <div class="description'>[a_short_excerpt_of _description]</div> </div>
A seen, there are four major attributes i’m trying to access: the date for the event, the post thumbnail, the title for the event, and a short excerpt. Is it possible to simply retrieve these values in my own template file that I have created?
- The topic ‘How do I access EM variables such as title and time started’ is closed to new replies.