- This topic has 4 replies, 2 voices, and was last updated 11 years, 6 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › Override format in front page template
I would like to show three upcoming events on my front page with thumbnails and links. When I add <?php eme_get_events_list(“limit=3&category=3&period=future&order=ASC”); ?> I get a vertical list. How can I override this so the thumbnails are horizontal? I can see that there is the option to add &format but not how to use it.
Many thanks, Jane
See an example here (when using the shortcode, but it’s identical):
http://www.e-dynamics.be/bbpress/topic.php?id=1578#post-5979
Thank you for this, perhaps I did not explain very well. I want to add the code to the front page template which currently calls latest posts in a particular category. I want to add an upcoming event into the template so that it adopts the same format as the other thumbnails, titles and links. Therefore I want to edit the template itself, not use shortcodes.
All help VERY welcome.
When using shortcodes inside your page, the template is also kept. So I don’t really understand this reason …
But as said, see the example in the link I provided for shortcodes. The method is identical when using the API function call directly:
<?php eme_get_events_list(“limit=3&category=3&period=future&order=ASC&format=xxxx”); ?>
where xxx is the html encoding of your format.
Thank you, that worked, guess I thought it was going to be more tricky than it was.