Adding format to template tag produces weird results in the displayed output
-
I use the following code to display upcoming_events on a web page:
[my_calendar_upcoming before=”0″ after=”4″ type=”event” fallback=”Watch this space for future announcements” template=”
<h4>{date}
{title}.</h4>
<h5>{description}</h5>
<h4>{location}</h4>
” order=”asc” show_today=”yes” skip=”0″ ltype=”” lvalue=””]This works fine, it displays the next 4 events Date,Title,Description,Location in chronological order.
However, if I try to add formatting to the {description} line, the display completely changes, but not according to the requested format. For example, putting in
<h5 style=”color:#FF0000″>{description}</h5>
causes the Description and the Location to disappear from the displayed output, and somehow the start and end times of each event appear at the beginning of the display. It doesn’t seem to make any difference what I put in the style specification–any color or any other style attribute has the same effect.
I’m using Version 3.1.13 of My Calendar.What’s going on??
- The topic ‘Adding format to template tag produces weird results in the displayed output’ is closed to new replies.