Support

Home Forums Event Espresso Premium Auto tags in events page

Auto tags in events page

Posted: December 28, 2013 at 6:12 am


Klaus M

December 28, 2013 at 6:12 am

those <p> tags that are inserted after saving an event in “/admin.php?page=events&action=edit&event_id=X” is driving me crazy.

<code>remove_filter( &#039;the_content&#039;, &#039;wpautop&#039; );
remove_filter( &#039;the_excerpt&#039;, &#039;wpautop&#039; );</code>

did not solve the problem. tips from here did not either ;( any idea how i can prevent the DESCRIPTION form from inserting these <p> tags?

thanks!


Dean

December 30, 2013 at 5:11 am

Hi,

As EE events are not currently true Customn Post Types, those filters wont work.

One way is to edit the registration_page_display.php file.

On line 46 approx you will see

<pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”><?php echo espresso_format_content($event_desc); //Code to show the actual description. The WordPress function "wpautop" adds formatting to your description. ?>

The function there uses wp_autop to format the content. If you want to see just the raw text with no auto formatting, you can change it to

<pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”><?php echo $event_desc; ?>

The support post ‘Auto tags in events page’ 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