I am using espresso_venue_description() to display the venue description in the event details. Unfortunately all line breaks/paragraphs, which are entered in the editor window of the venue, get stripped in the frontend. Curiously, tags are kept.
I updated the plugin, the issue still remains. The template tag is used in a single-espresso_events.php template file.
PS: After the update a ‘$event->DTT_EVT_start’ call in a custom query stopped working. had to implement another way and it works. I couldn’t find anything on that in the changelogs, though…
I’m not sure if this is the ideal solution, but if you copy across the content-espresso_events-venues.php to your theme and in that edit the $venue_description variable so it is wrapped in wpautop it will make the description formatted.
thanks for the tipp. Unfortunately this didn’t work.
However, I found the solution myself: there is already an instance of EE_Venue in use in the single template. So I got a variable to store $venue->description(). After putting that variable within wpautop it did work!
The support post ‘Venue description without line breaks’ 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.