ptaylor1001
Forum Replies Created
-
Found it
order="DESC"
Widgets issue sorted – user error.
@ruthnovo You would the same code on each page but change the event category id to the appropriate one for each page. For the CSS you are looking for a file that ends in .css. It will probably be called something like “styles.css”. You will need to know what you are doing here or your site could end up looking like a dog’s breakfast.
@marcus. Many thanks, the solution works but with 1 modification – events-list.php should be copied to
yourthemefolder/plugins/events-manager/templates/
If the directories do not exist then you need to create them.
Now for the Widgets issue.
The only thing that I can think of is to make the featured image a thumbnail.
The extra lines are probably from the CSS file – I am no expert.
@angelo_nwl I tried both the plugin and the code for the functions.php and neither worked – see
https://thenetwork.lu.previewyoursites.com
and scroll down.
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.
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.
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.
https://www.irishclub.lu/test-events
Just doesn’t seem to work on the page created by EM (Club Events).
Cheers
Phil
Thanks Phil
I just tried that and it seems to get ignored.
Cheers
Phil
Thanks for your help aglonwl.
Problem solved.
Philip
Thanks
However, I can’t find the class in any css file. I just need to know which css file to look in for the class.
The page html output suggests event-manager.css but it is not there.
Philip
Thank you aglonwl for the syntax. The first one appears to work a treat but the second not. In any event I have the information to fine tune this.
Thanks very much
Philip
Thanks Marcus.
I was hoping not to have to edit any php files as my php knowledge is quite (very) rusty.
I get the category=”-x” bit, but the search array? How is that identified?
I am guessing here but something along the lines of
$args['category'] = $_REQUEST['category="-x"']
Or is that way off?
Thanks
Philip