Not the best solution but this works fine:
<?php remove_filter('the_excerpt', 'wpautop'); ?>
Related Posts:
- how to check if an element in an html file exists in another html file? [closed]
- How to change the markup WordPress inserts for post images
- Check if the user has explicitly set an excerpt
- How to override function in functions.php of parent theme?
- ajax live search for post title
- Show Video in Excerpt
- When is wp_trim_excerpt() called?
- Wrap gutenberg block ‘div’ in other elements/extra HTML
- Stripping shortcode from custom excerpt function
- Remove images from get_the_excerpt
- Custom page template how to check is_page from functions.php?
- display public excerpt for private post
- get_the_excerpt() not returning anything when post has no excerpt
- get excerpt without images
- Pinterest Integration Using functions.php
- radio button is checked but display not check
- Allow latex in wordpress excerpt
- Custom excerpt legnths for specific pages
- How to filter out shortcode when displaying the_excerpt() in the loop?
- Using “Read More” link with custom excerpt
- How can you limit srcset on a single type of page?
- How to display post content instead of excerpt
- Scripts not appending to element in AJAX call – why?
- WordPress Menuing Question :focus
- Custom Post excerpt not working correctly
- Remove after images
- Warning: : DOMDocument::loadHTML(): Empty string supplied as input in functions.php when adding classes to post images
- Limit length of first excerpt in the loop
- new_excerpt_more link not working properly
- PHP mixed with some JS code to update WordPress theme settings
- Excerpts are not displayed by a shortcode on category pages
- Add a unique class to HTML tag/element
- Make wp_link_pages() suitable for Twitter Bootstrap markup
- How to display retweet count and likes in the meta above the excerpt
- Setting a default text for excerpts of a particular category
- echo custom fields with AJAX
- Remove links from the_content when using filters wp_trim_excerpt
- Excerpt for pages not showing
- How do I pull excerpts from pages?
- WordPress Excerpt – How to remove the first link using functions.php
- Strip div From Excerpt
- How to change value of variable in theme file with functions.php WordPress?
- The correct way to add a JavaScript in the functions.php [closed]
- first paragraph of the_content as meta description
- Auto scroll to id on page load on all pages except home page. Only do this on mobile
- Adding Read More to Custom excerpts
- Creating multiple category drop down
- Limit number of characters in different excerpts
- Shortcode of a function
- the_excerpt function not showing image
- How do I make a custom “Read More Blogs” button for my blog page
- Appending „read more” to the excerpt conditionally
- Images with overlay
- Add schema to Search result page’s body. Tried using is_search
- Hide disclaimer from summary excerpts
- Some code is added automatically to my site’s header – what is it?
- How to make an If Else on Excerpt Filter
- Automatic add space if user enters number(any digit)
- getExcerpt: Make ellipsis appear only if character limit is reached
- need help with ‘… read more’ excerpt in functions.php
- Excerpt length: get 2 paragraphs
- Sanitize html, where to sanitize
- Remove heading tags on line break
- Check if excerpt is empty at loop-portfolio
- Print all inline styles to head
- Can’t change excerpt length and more tag
- More link – not text
- How to add an excerpt and read more link to a page?
- Adding a filter to my posts
- Excerpt – First Sentence & Read More
- Can’t find function which is called in a wordpress theme
- function to show youtube videos within excerpt – if condition and apply_filters
- Function to filter numbers from string
- Missing feature image link function
- What’s the difference between home_url() and site_url()
- Remove “Category:”, “Tag:”, “Author:” from the_archive_title
- get_template_directory_uri pointing to parent theme not child theme
- How to customize the_archive_title()?
- remove empty paragraphs from the_content?
- What is the “with_front” rewrite key?
- Why use if function_exists?
- How to override parent functions in child themes?
- wp_enqueue_script was called incorrectly
- Add multiple custom fields to the general settings page
- Ajax call always returns 0
- 400 bad request on admin-ajax.php only using wp_enqueue_scripts action hook
- How long does a deprecated function live in core?
- Solution to render Shortcodes in Admin Editor
- How to add a data attribute to a WordPress menu item
- What’s the difference between esc_html, esc_attr, esc_html_e, and so on?
- remove_action on after_setup_theme not working from child theme
- plugins_url vs plugin_dir_url
- Remove type attribute from script and style tags added by WordPress
- How to run a function every 5 minutes?
- Best way of passing PHP variable between partials?
- Upload Multiple Files With media_handle_upload
- How to display custom field in woocommerce orders in admin panel?
- Adding fields to the “Add New User” screen in the dashboard
- Issues with title-tag and document_title_parts
- How do I get the current edit page ID in the admin?