Support

Home Forums Event Espresso Premium Venue description without line breaks

Venue description without line breaks

Posted: January 22, 2015 at 7:09 am

Viewing 6 reply threads


newshoreMedia

January 22, 2015 at 7:09 am

Hi there,

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.

Any idea how to avoid this?

Cheers from Germany


newshoreMedia

January 22, 2015 at 7:10 am

Oh, one more thing: using EE4 4.4.5.p on WordPress 4.1

Thanks


Lorenzo Orlando Caum

  • Support Staff

January 22, 2015 at 10:37 am

Hi there, could you please update to the current release of Event Espresso 4 at 4.4.8:

https://eventespresso.com/wiki/ee4-changelog/

Next, is that template tag being loaded through one of the starter templates for Event Espresso 4?


Lorenzo


newshoreMedia

January 23, 2015 at 1:09 am

Hi Lorenzo,

thanks for the answer!

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…

Regards


Dean

January 23, 2015 at 7:02 am

Hi,

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.


newshoreMedia

January 23, 2015 at 7:53 am

Hey Dean,

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!

Thanks and regards!


Lorenzo Orlando Caum

  • Support Staff

January 23, 2015 at 8:56 am

Hello again, thanks for sharing your solution. If you need help with anything else, then please create a new support post in our support forums:

https://eventespresso.com/support/forums/


Lorenzo

Viewing 6 reply threads

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.

Event Espresso