It was solved by a coworker.
function removebreaks($content)
{
$content = str_replace('<br>', '', $content);
$content = str_replace('<br/>', '', $content);
$content = str_replace('<br />', '', $content);
$content = str_replace('<BR>', '', $content);
$content = str_replace('<BR/>', '', $content);
$content = str_replace('<BR />', '', $content);
return $content;
}
add_filter('acf_the_content', 'removebreaks');
Related Posts:
- How to get shortcode working from custom meta field
- Customizing gallery shortcode in 3.5
- Multiple content areas per page
- wpautop() when shortcode attributes are on new lines break args array
- Custom protected password page with ACF
- Print shortcode in custom action hook not where the shortcode is entered
- Custom column sorting in WordPress admin post table
- Hide custom field if empty
- shortcodes – style them or change/remove the square brackets?
- list/consult Taxonomy only for the respective author/creator in dashbboard
- Loop through custom fields with similar label / common chars in label
- Advanced Custom Fields: Sorting custom columns with custom fields sorts only by date
- Gallery IDS and Captions: hide/show on a per ID basis
- CPT Loop with ACF and passing ID between Loops
- Redirect to another page using contact form 7? [closed]
- What requirements for ACF custom fields key and name properties?
- Get users based on month ACF datepicker field
- Creating a shortcode by pulling in a custom field from a plugin
- Duplicated content with custom shortcode
- How to create “custom page types” with different custom fields in them?
- wordpress shortcode not working
- Where to upload my new custom ShortCode in Separate .php file?
- Query Product categories what have a custom field
- ACF unable to use user field
- Display Custom Taxonomy Name As A Shortcode
- Upload advanced custom field text link array with csv
- wp.blocks.registerBlockType not showing what I want on the frontend
- WP_User_Query Search Multiple Keywords from a Multi-Select Field?
- Local Shortcode Using WordPress Custom Fields
- Style Radio Buttons inside Edit Page (Custom Fields)
- Changing ‘Add to cart’ button text and relink for some specific products [closed]
- How to support extra color options for shortcodes?
- Customize TinyMCE Buttons
- How to create a shortcode with HTML code in it and custom parameters/
- Is there a flowchart for WordPress loading sequence?
- How do register_sidebar() and get_sidebar() work together?
- Custom maintenance page
- How to customize the default HTML for WordPress Attachments
- Is it possible to change the attributes of a registered style or script before it fires?
- how to change “published date” format on edit.php (Posts page)?
- Shortcode from a widget is wrapped in unwanted element
- How to change submit button value in comment from “Post Comment” to “Send”
- Creating a searchable A-Z listing of hundreds of companies/services
- Show attribute description when filtering by that attribute
- Customize in category page
- Custom Dashboard Home Screen Options
- How to get WordPress to accept the tag in articles (or other alternatives)
- Add custom column to Users admin panel with Types user custom fields?
- How do I change the default admin color scheme in MP6
- woocommerce Add custom field set like billing fields
- How can a single line in a blog post take down my server?
- Calling a php file from a javascript file in wordpress
- Adding a Table to the wordpress database
- how can I change the background color of all posts on my server?
- Auto redirect after session expire, but only for one user
- Custom title, Bones theme
- How to create a completely private wordpress with multiple membership levels
- Why do posts disappear from admin after upgrading from WP 2.7.1 to 3.0.1?
- How to change the category url jusy show /category/%category_id% in wordpress?
- custom meta box for page default template
- How can I display a PHP foreach loop’s answers by AJAX
- Child Theme with multiple css files
- “An automated WordPress update has failed to complete – please attempt the update again now”– But there is no .maintenance file
- How do I redirect a post url to a custom url?
- How to customize
- Why the css in twenteenfourteen-child theme take no effect?
- Determine if action was executed in functions
- Extending core class in plugin
- Is it possible to make wordpress LMS
- Saving contact form 7 data into custom Table
- css media query question [closed]
- How to create a page /1 using ?
- Hiding Short Description in Shop Page, WooCommerce
- theme customizer – can a single option pass multiple values?
- Separate header for static home page and posts page
- Media Upload not working after hiding some elements from functions.php
- Pagination with custom field
- Customizing the gallery of the post correctly
- Will WordPress updates remove Gutenberg Additional Classes?
- WP_Query – sort the results by meta value custom attribute wocoomerce
- Multiple header style under meta box
- How can I create a Custom Page? (not a page template!!)
- save short-code in my custom plugin settings problem missed something
- Adding a drop-down (select tag) option under Menu Settings in WordPress Admin
- How to output values from a loop into a javascript array
- How to have different background image based on post category
- Custom stylesheet not loading
- Custom Admin Section
- how to hard link to the posts page?
- issue with saving custom metaboxes fields
- Error in establishing a database connection in wordpress?
- DOM reference to TinyMCE editor element (button)
- Allow arbitrary text after page URL
- Custom Link In WordPress Media “Attachment Details” Upload Screen
- “Static” pages within a theme
- Collection of fields in a single post
- Changes to code not displaying
- Has the table name in SQL for WordPress changed from WP_posts to WPCS_post?
- Multi color post title by using custom javascript inside the gutenberg editor?
- Add custom styles to the Raft theme