WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
Template for shortcode events_list (4 posts)

  1. pavelevap
    Member
    Posted 2 years ago #

    Hi,

    is there any chance how can I set up another template for events_list shortcode in administration settings? There is main template which is usually needed for main events page (with post thumbnail, title, excerpt, etc.), but many users want to use also simple listings for other events_list shortcode (for example only title and date).

    Instead of using following code:

    <ul>
    [events_list category="417"]
    <li>#_EVENTLINK - #_{j.n.Y} #@_{- j.n.Y}</li>
    [/events_list]
    </ul>

    It would be very helpfull for users to use only:

    [events_list category="417"]

    or

    [events_list category="417" template="short-list"]

    And other HTML and formatting issues could be solved in settings (fields before, format and after). Or is there any other way how can I achieve this? Editors of my site are not very HTML experienced and using the whole code makes sometimes problems with formatting issues, etc.

    Thank you very much for your help!

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 2 years ago #

    you can use shortcode [events_list category="417"] then do the formatting @ EM Settings > Formats/Layouts > Events Format ?

  3. pavelevap
    Member
    Posted 2 years ago #

    No, this format is used on my main events page. There are specified post thumbnail, title, date, category, excerpt, etc. I need another simple template which can be used only for simple listings as in example above (for example title + date).

  4. agelonwl
    Member
    Posted 2 years ago #

    I see now, you can create a new search attribute e.g. template="short-list" for that then do the formatting there.

    here's a series of tutorials:

    http://wp-events-plugin.com/tutorials/
    http://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic