Posted: November 15, 2012 at 4:27 pm
|
I copied over event_list.php and event_list_display.php templates into /wp-content/uploads/espresso/templates. |
Hi Elzette, Can you try this?
The above code should go somewhere in the template outside the PHP code blocks, one place could be right after the:
|
|
|
I’ve tried that, but nothing happens. I add an image through the event’s Featured Image. |
Hi Elzette, There are a few additional steps that will need to be done in order to get a featured image to display on the Recurring events templates. Step 1 is to add event_meta to the array near the bottom of event_list.php. Example code follows:
Step 2 is to replace what you have now for the featured image display in event_list_display.php with the following:
You may also want to add a class to that image or wrap it in a division to help with styling. If the featured image isn’t updating after uploading an image and after you “Insert to Post”, then there may be a plugin or theme conflict. The above was tested using the latest version of Event Espresso and the twentyeleven theme. |
|
|
Thank you for having a look into this, but it is still not working. Here is the Pastebin link to the event_list.php I have at the moment: http://pastebin.com/LAutwWWx Any ideas? Thanks! |
|
Also, I did use the above files in a fresh local installation using Twenty Eleven theme, with no plugins active, except for Event Espresso and the recurring events add-on and the thumbnail still didn’t show on the events page (or registration page). As soon as I add a recurring event shows all the prices the same as the last added on – please if you can view here: http://www.testingwebsite.me/event-registration/ What I thought how it should work is to be able to have a page listing all the events and each event to show:
Can you let me know if this is achievable? And Pastebin link to the event_list_display.php: http://pastebin.com/H7fN0Dn5 |
Hi Elzette, I took a look at the page that you linked to, and it doesn’t look like the recurring events templates are in use there. The one event that was listed had a registration link that added the event to the cart. So it looks like you’re trying a different set of templates right now. I’m going to try to address your spec list:
Title of the recurring event group is already included in both the stock and recurring events templates.
The code I gave you works on my test install. Without seeing a working example, I’m at a loss at to why it’s not working for you. I’ve tested and rested on my test site and the code is working for me. Were these templates copied into /wp-content/uploads/espresso/templates?
The event list templates do not display price options, they only can display one price. I would suggest typing a price range into a meta field, and using the [EE_META] shortcode to display the price range. See this section of the shortcode documentation for more info:
context in this gist:
I think we have this covered with the recurring events templates, unless you’re referring to something else. |
|
|
Thank you for your response. The reason why it showed different when you had a look at that page, is because I started using a different plugin. I realised that there are too many points unresolved and I struggle to customise the templates to the way I need it to display. After over a week of back and forth and pressure and stress from my client, I did research into something else and yesterday I was able to set it up, work and display to my needs. |
The support post ‘How to make featured image work?’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.