Posted: February 16, 2016 at 8:59 am
|
Hi there, In 4.6 I modified the loop-espresso_events.php to display the events in two rows. I also modified content-espresso_events.php to change the order how the event elements are displayed. -1- Why is that? I need to alter this file in order to get my two column layout. -2- I figured out, that with the new version I don’t call content-espresso_events.php but content-espresso_events-shortcode.php. Is that right? I changed that and the double content was gone. But I still had to reorder the elements. I did what is written inside the xxxx-shortcode.php * comment out calls to the_content() and espresso_event_content_or_excerpt() so it looks like this:
I expected to get this: But what I get is this: When I comment out the details I get this: So it seemd to me that “event-details” now means “tickets + datetimes + details”. Does this make sense to anyone? ๐ I would really appreciate any help! thank you! |
Hi there, The re-ordering part is a built in option now. So you can remove the code you used for re-ordering the template parts and use the option instead. For the two column part, can you upload a copy of your single-espresso_events.php and/or archive-espresso_events.php, and your old loop file to a gist or a pastebin, then link here? We can take a look and offer some suggestions on how to make those two columns. |
|
|
Hi Josh, thanks for your reply. The 2-column-part in my loop.php looks like this:
Kind of self-made, I know ๐ But it worked (until the update). Thanks for your help! |
The option is in Event Espresso > Events > Templates. Are you using the two column layout for the page with the [ESPRESSO_EVENTS] shortcode only? |
|
|
Yes. So it looks like this: |
Your code should still work then so long as you update your copy of loop-espresso_events.php to call |
|
|
okay, than you! |
The support post ‘did espresso_events-details change with 4.7 or 4.8’ 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.