Hi, I’ve read through the forums and followed the steps to get a new Single Event template, and it’s working, for the most part. I’m calling the EE content with this line in the template (it replaced the_content(); in the Avada Single post template): <?php espresso_get_template_part( ‘content’, ‘espresso_events’ );?>
I also added the filter that tells EE to use the custom ordering.
I also added the filter that tells EE to use the custom ordering
Which filter are using for this?
I’m guessing your using the old method to change the order which will basically mean your injecting the content after EE already has. If you can post the code you are using I can confirm and go from there.
This reply was modified 5 years, 3 months ago by Josh.
So with the above EE injects the event details into the_content() when using a custom template so you don’t need to call espresso_get_template_part( ‘content’, ‘espresso_events’ ) you just call the_content()
Calling the template files directly would mean you are taking over full control of the template yourself and wouldn’t want EE to also inject the details (which is what the above filter is doing).
Switch back to simply calling the_content(), does it work for you then?
If not can you post the contents of your template to Pastebin and add a link here so I can view it?
Viewing 3 reply threads
The support post ‘Single Event Template customization’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.