Posted: August 13, 2014 at 2:58 am
|
Hi Guys, Josh sent me a very helpful snippet yesterday which is great but i need to expand on it. I need to be able to get the event date, location and a link to buy the tickets so i can display a list of 3 upcoming events. This is the snippet from github, + i added a date output before remembering that this is the post date not the event date. I need to output the information in the ‘Upcomming events’ box on the right, which you can see here: http://preview1.maxx-design.co.uk/acs/15.htm
Is there any specific documentation for the functions i’d need to use? Its worth noting that im primerally a Drupal developer so i don’t have much experiance with wordpress at all. Thanks |
Hi Jackie, There are a number of template tags that you can use to display this information. The template tags require a view helper. You can load the Event View helper by adding this to your template (for the date and register button) :
You can load the Venue View helper by adding this to your template (for the location) :
Here is a link to the documentation for the template tags you’ll be able to use in your template with the loaded view helpers: |
|
|
Hi Josh, Thanks for that! it was exactly what i needed 🙂 |
The support post ‘Get event details in template’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.