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
- What is the difference between get_page_link and get_permalink functions?
- Breadcrumbs showing Parent and Child Pages
- How to preserve edits to Name or Slug of term when using wp_update_term on save?
- Register and enqueue style.css custom theme
- Understanding and altering the structure of posted images
- What do the schemes login, login_post, admin, and relative mean?
- How to stop twenty fifteen theme from cropping featured images?
- Don’t display html if function returns nothing
- In jquery use php variable to execute an enqueued jquery file
- How to stop media_sideload_image from running when deleting a post?
- I want to display latest post in marquee [closed]
- How to make custom comment fields required
- How do I register a new settings page? [closed]
- Include Jquery libraries in wordpress theme?
- Retrieve First Image Function
- How to get taxonomy tree ids without running expensive loops
- Using get_terms for custom taxonomy in functions.php
- Child theme remove parent filter in functions
- Set URL Parameter Post Layout As Default
- How to add publish/draft button in Admin Post Lists
- Woocommerce – change order status from on-hold to pending payment
- How do I integrate my Child Theme into a Custom Template?
- Sending Messages Back to the Template After Processing?
- Shortcode to eliminate and replace with
- using enqueue_script in a shortcode isn’t working
- Filter to strip unnecessary attributes
- get_post_class() not working well
- How to overwrite image if it already exists – WordPress, Gravity form