Support

Home Forums Event Espresso Premium Event List-Genesis conflict?

Event List-Genesis conflict?

Posted: May 9, 2014 at 2:26 pm

Viewing 10 reply threads


Michael

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
[ESPRESSO_EVENTS order_by=”start_date,id”]
causes no change

the parameter
[ESPRESSO_EVENTS order_by=”ticket_start,id”]
displays no events


Michael

May 9, 2014 at 2:30 pm

I’m on WP Engine and will add no-cache to the critical pages to rule this out.


Lorenzo Orlando Caum

  • Support Staff

May 11, 2014 at 2:44 pm

Hi Michael, could you please let us know what version of Event Espresso you are running?

Thanks


Lorenzo


Michael

May 12, 2014 at 7:36 am

4.2.3

thanks


Lorenzo Orlando Caum

  • Support Staff

May 12, 2014 at 9:31 am

What happens if you create a page with a slug of ‘events’ and then add the following shortcode?

[ESPRESSO_EVENTS]


Lorenzo


Lorenzo Orlando Caum

  • Support Staff

May 12, 2014 at 10:29 am

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.


Lorenzo


Lorenzo Orlando Caum

  • Support Staff

May 12, 2014 at 11:06 am

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.


Lorenzo


Josh

  • Support Staff

May 12, 2014 at 11:31 am

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.


Michael

May 12, 2014 at 11:31 am

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


Michael

May 12, 2014 at 11:36 am

Thanks Josh.
I’m just not able to sort by ticket_start. Trying to use that in order to list events by ticket-date, so if Event A ticket is good for today at 8pm, it will show up before Event B today at 9pm.


Josh

  • Support Staff

May 14, 2014 at 2:17 pm

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 );
Viewing 10 reply threads

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.

Event Espresso