Events Made Easy Forums How do I … New template_id feature

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #44120
    Anonymous
    Inactive

    Franky,

    I’m so thankful you’ve implemented this feature. However, I’m having a little trouble getting it to work. Perhaps I’m doing something wrong. The shortcode I am using is the following:

    [events_list scope=future limit=1 template_id=1]

    My template is the following:

    <p class="impact-text-large" style="color: white; text-align: center;">[events_if tag='#_IS_ONGOING_EVENT' value='1']Current[/events_if][events_if tag='#_IS_ONGOING_EVENT' value='0']Next[/events_if] Meeting:

    #_EVENTNAME </p>

    The result that I am getting is my default events list as set in my settings event page.

    Also, I noticed that it somehow truncated my original template significantly upon saving. Is there a character limit set for that field somehow?

    #51031
    Franky
    Keymaster

    Just tested with your shortcode and your template: works fine here with 1.2.0

    Does your id match the template ID you created?

    Also: I don’t think there’s a limit, so what was the original template?

    #51032
    Anonymous
    Inactive

    Yes, definitely truncating my template. Here it is:

    <p class="impact-text-large" style="color: white; text-align: center;">[events_if tag='#_IS_ONGOING_EVENT' value='1']Current[/events_if][events_if tag='#_IS_ONGOING_EVENT' value='0']Next[/events_if] Meeting:

    #_EVENTNAME </p>

    <div class="impact-text" style="color: white; text-align: center;">#_TOWN</div>

    <div class="impact-text" style="color: white; text-align: center;"><i>#_EVENTCATEGORIES</i></div>

    It is cutting if off after the first <div class=

    #51033
    Anonymous
    Inactive

    Also, it keeps returning the default events list format no matter what I do.

    I created a second template, which ended up with a template id of 2. I called the following shortcode: [events_list scope=future limit=1 template_id=2], but all I’m getting is the default events list!

    The second template I designed was the following code:

    #_{M j}[events_if tag="#ESC_{j M Y}" notvalue="#ESC@_{j M Y}"]-[events_if2 tag="#ESC_{M}" notvalue="#ESC@_{M}"]#@_{M }[/events_if2]#@_{j}[/events_if], #o

    #51034
    Franky
    Keymaster

    Are you sure the update went OK?

    #51035
    Franky
    Keymaster

    Ok, the truncating part is fixed here (stupid field in the database was declared as tinytext, should’ve been just text):

    http://plugins.trac.wordpress.org/changeset/837877

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