Events Made Easy Forums How do I … Override format in front page template

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #44004
    Anonymous
    Inactive

    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

    #50519
    Franky
    Keymaster

    See an example here (when using the shortcode, but it’s identical):

    http://www.e-dynamics.be/bbpress/topic.php?id=1578#post-5979

    #50520
    Anonymous
    Inactive

    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.

    #50521
    Franky
    Keymaster

    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.

    #50522
    Anonymous
    Inactive

    Thank you, that worked, guess I thought it was going to be more tricky than it was.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top