Posted: May 9, 2014 at 2:26 pm
The default Event List page /events doesn’t show Featured Image in my theme (Genesis 2, Parallax Child). Featured Image does show on regular archive pages. When I use the [ESPRESSO_EVENTS] shortcode, featured images DO show. When I use the shortcode, I can’t sort my events by start date using the parameter the parameter |
|
I’m on WP Engine and will add no-cache to the critical pages to rule this out. |
|
Hi Michael, could you please let us know what version of Event Espresso you are running? Thanks — |
|
4.2.3 thanks |
|
What happens if you create a page with a slug of ‘events’ and then add the following shortcode? [ESPRESSO_EVENTS] — |
|
Actually, setting up that shortcode won’t fix this issue. I’m going to try creating a template for the events list page to see if that works and I’ll share feedback shortly. — |
|
I was able to test this with Genesis 2.0.2. Login to your WordPress site with an SFTP or FTP client such as Filezilla or Cyberduck. Then browse to this location: /wp-content/plugins/event-espresso-core-reg/templates/Espresso_Arabica_2014 Download the archive-espresso_events.php & loop-espresso_events.php files to your computer. Then browse to your themes folder and upload the files above. From there, refresh your events list page and you should now see your featured image. Alternatively, you could insert the image into the Event description area. Then go to WP-admin –> Event Espresso –> General Settings –> Templates and set the Display Description for Event list to show excerpt or full description. — |
|
Hi Michael, You could also check in the Genesis Theme settings under Content Archives for the checkbox that says “Include the Featured Image?”. While I don’t have the Parallax child theme, checking the box with plain Genesis 2 activated makes the featured image display for the /events/ archive page. With the [ESPRESSO_EVENTS] shortcode: order_by=start_date is the default, so adding order_by=start_date will not change anything. However, the sort order can also be specified. So for ordering by start date and reversing the order, you’d do this: [ESPRESSO_EVENTS sort=”DESC” order_by=”start_date,id”] or not reverse it: [ESPRESSO_EVENTS sort=”ASC” order_by=”start_date,id”] depending on which sort order you want. |
|
Thank you, yes that works. Looks like I missed the part about moving templates to the theme folder. Do you suggest moving all of them? thanks |
|
Thanks Josh. |
|
Hi Michael, With the featured image issue, I don’t think you need to move any of the templates to the theme folder, unless the parallax child theme is changing something. The order_by=ticket_start parameter is on the list to get fixed in an upcoming release. If you need that working right now, there are a few edits that can be made to both /event-espresso/modules/events_archive/EED_Events_Archive.module.php and /event-espresso/core/CPTs/EE_CPT_Event_Strategy.core.php. In EED_Events_Archive.module.php on lines 181 to 183 the 1 is changed to 11 like this: add_filter( 'posts_join', array( $this, 'posts_join' ), 11, 2 ); add_filter( 'posts_where', array( $this, 'posts_where' ), 11, 2 ); add_filter( 'posts_orderby', array( $this, 'posts_orderby' ), 11, 2 ); Then in EE_CPT_Event_Strategy.core.php lines 67 and 68 the 10s are changed to 1: add_filter( 'posts_fields', array( $this, 'posts_fields' ), 1, 2 ); add_filter( 'posts_join', array( $this, 'posts_join' ), 1, 2 ); |
|
The support post ‘Event List-Genesis conflict?’ 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.