Hiya,
The best way would probably be to use the shortcode, like so;
[events_list category="4"]
Cheers,
Phil
Thanks Phil
I just tried that and it seems to get ignored.
Cheers
Phil
are you using the right number? you need to replace 4 with either your category ID, or the slug e.g.”music”
Thanks Marcus,
Yes, the number is correct and I’ve tested the code on another page and apart from a couple of minor formatting issues it works there.
http://www.irishclub.lu/test-events
Just doesn’t seem to work on the page created by EM (Club Events).
Cheers
Phil
Could you paste the snippet you’re using for your Club Events page? Thanks.
I think I am attempting to do the same thing. I have four categories of events. I would like events for each category to print on separate pages. Can you get me started in the right direction. I am using the free version of EM via wordpress. Thank you!
@ruthnovo
Here is the code that I used on the test page.
<table cellpadding="0" cellspacing="0" class="events-table" >
<thead>
<tr>
<th class="event-time" width="110">Date/Time</th>
<th width="102"></th>
<th class="event-description" width="*">Event</th>
</tr>
</thead>
<tbody>
[events_list category="4"]<tr>
<td>
#_EVENTDATES<br/>
#_EVENTTIMES
</td>
<td>#_EVENTIMAGE</td>
<td> #_EVENTLINK
{has_location}<br/><i>#_LOCATIONNAME, #_LOCATIONTOWN #_LOCATIONSTATE</i>{/has_location}
</td>
</tr>[/events_list]
</tbody></table>
The important bit is the [events_list category=”x”]..[/events_list] where x is the category ID.
@caimin_nwl Currently that is provided by the EM settings and is the code provided by them. I have tried all manner of ways to try and filter to one category (category ID 4) but none have worked.
I have a similar issue when I try to use EM placeholders and shortcodes in text widgets, they don’t work.
I tried the above shortcode and seems to be working? can you confirm that 4 is = Irish Club
about placeholders and shortcodes in text widgets, try something similar using links
http://www.wprecipes.com/how-to-add-shortcodes-in-sidebar-widgets
http://wordpress.org/plugins/shortcodes-in-sidebar-widgets/
I used ths code, selected the appropriate category ID and it worked fine. I would like to customized the format by deleting the event date and event time column. As luck would have I am having trouble getting that done.
To remove the Dates/Times column it should work if you just delete the <th> for the Date/Times and then the <td> that contains the placeholders for the dates and times.
I tried that but then the event image becomes larger.
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
<table cellpadding="0" cellspacing="0" class="events-table" >
<thead>
<tr>
<th class="event-time" width="110">Date/Time</th>
<th width="102"></th>
<th class="event-description" width="*">Event</th>
</tr>
</thead>
<tbody>
[events_list category="8"]<tr>
<td>
#_EVENTDATES
#_EVENTTIMES
</td>
<td>#_EVENTIMAGE</td>
<td> #_EVENTLINK
{has_location}<i>#_LOCATIONNAME, #_LOCATIONTOWN #_LOCATIONSTATE</i>{/has_location}
</td>
</tr>[/events_list]
</tbody></table>
When I delete <th> and <td> for event date and event time , thief event image becomes larger. Any thoughts? Thank you.
And one more Question.. How can I delete all the extra lines at the top of the table? Thx