[Gelöst] Remove wpautop filter from Toolset custom fields
This support ticket is created vor 7 Jahre, 4 Monate. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
However the knock-on effect is that now all the fields are wrapped in <p></p> tags by the wpautop filter. Is there any way I can disable this wpautop filter on the Toolset fields display?
Disable 'autop' filter, by putting following code in your theme's functions.php:
remove_filter('the_content', 'wpautop');
Please note that:
This will disable autop site-wide. You can encapsulate it in an appropriate event/action/hook, to disable at particular time. Please see View Filters API at https://toolset.com/documentation/user-guides/views-filters/ for a suitable action.