events_list shortcode formatting
-
I have the following code on my page:
[events_list category=”rehearsals” limit=”0″ format_header=”<table><tbody><tr><th>Date</th><th>Venue/Time</th><th>Works</th><th>Setup</th><th>Refreshments</th></tr>” format_footer=”</tbody></table>”]<tr><td>#_EVENTDATES</td><td>#_EVENTEXCERPT</td><td>#_EVENTNOTES</td><td>#_ATT{Setup}</td><td>#_ATT{Refreshments}</td></tr>[/events_list]
On saving, this changes to:
[events_list category=”rehearsals” limit=”0″ format_header=”
<table>
<tbody>
<tr>
<th>Date</th>
<th>Venue/Time</th>
<th>Works</th>
<th>Setup</th>
<th>Refreshments</th>
</tr>
” format=”
<tr>
<td>#_EVENTDATES</td>
<td>#_EVENTEXCERPT</td>
<td>#_EVENTNOTES</td>
<td>#_ATT{Setup}</td>
<td>#_ATT{Refreshments}</td>
</tr>
” format_footer=”</tbody>
</table>
“][/events_list]Both versions work fine as long as I edit using the Text editor. If I switch to the Visual Editor and Update it changes to :
<p>[events_list category=”rehearsals” limit=”0″ format_header=”</p>
<p>” format_footer=”</p>
<table>
<tbody>
<tr>
<th>Date</th>
<th>Venue/Time</th>
<th>Works</th>
<th>Setup</th>
<th>Refreshments</th>
</tr>
</tbody>
</table>
<p>”]</p>
<p>#_EVENTDATES#_EVENTEXCERPT#_EVENTNOTES#_ATT{Setup}#_ATT{Refreshments}</p>
<p>[/events_list]</p>This rearranges all the formatting. I really need the tables to constrain the columns.
I am already using the default format settings for my orchestra concerts but need a different layout for the rehearsals. Is there another way I can do this?
- The topic ‘events_list shortcode formatting’ is closed to new replies.