Try this instead:
remove_filter (‘the_content’, ‘wpautop’);
You can also look at your page.php or template file and investigate which elements/tags are being used.
Hope this helps!
Related Posts:
- How do I add custom bulk actions to multiple custom post types?
- How to add aria role and schema markup to custom walker container
- Should I set a page as “No-index” if I include it’s content within the front-Page.php via this method?
- Function to return true if current page has child pages
- Apply class to every paragraph that holds image?
- List of all theme customizer control types?
- How can I hook into and edit the text of a wp_nav_menu tag?
- How to get the registered sidebar’s name by its id?
- is there a simple way to list every templates / php files used to generate a specific page?
- Rename image uploads with width in filename
- Check if page parent has certain template
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- Dynamically loaded Theme components based on Customizer Settings values : changes not appearing in Customizer preview – (Workaround found)
- Why do filters/actions require an argument count?
- How do I list the_tags() into HTML data-attribute
- Getting my head round WordPress filter
- Using Font Awesome as post thumbnail
- How to set a custom path, for ajax image upload folder in admin?
- Filter get_the_title to remove certain characters?
- How to use return in my custom function instead of echo
- How do I access the media settings
- custom shortcode will not display the wrapped content
- WordPress php filter admin_body_class not working
- Remove a filter added by a plugin
- Using a variable in is_page(array())
- Trigger popup in a php if/else statement
- Anyway to output the registration form like the login form with wp_login_form()?
- WooCommerce Related Products by Attribute
- How can i upload images in an admin page?
- Where to edit the template that is generating the code for dynamic_sidebar left-sidebar in the Understrap theme? [closed]
- Add a class to the anchor tag on HTML5 gallery
- How can I create a list of page titles from custom meta values?
- Wp-login appears White Screen, Error: Cannot modify header information
- get_the_tags() not iterating through for/while loop, but will with foreach
- How to control WordPress image metadata (using Imagick)?
- I have a problem in the order of enqueues while enqueuing stylesheets and scripts for a specific page in my function.php
- Need Help Fixing My Iframes [closed]
- Removing “wpautop” (auto tags) only on certain pages?
- post created but no permalink
- Catchable fatal error: Object of class stdClass could not be converted to string after WP 4.7
- Trying to retrieve post meta
- can i fetch a custom metabox data in another page or post type?
- Redirect to another page using contact form 7? [closed]
- How to debug this search & replace strings snippet?
- Hide Featured Image Meta Box on Editor Screen
- Add item to top of menu using a filter in functions.php
- ‘Post-thumbnails’ feature does not seem to register
- Use .php file as page instead of wordpress page & template file?
- How to set up a If is_singular statement?
- Underscore – Self hosted fonts
- Get title attribute from galleries
- How can I use a sliced image As banner? [closed]
- Add meta tags to a custom header
- Ajax filter button display all posts
- How to make function appear in sentence?
- Widgets not showing on custom theme
- Get all posts as an array ID => Name
- Custom query vars filters problem with pagination
- How to Update an old theme for the latest wordpress version
- Adding Updated Post Date PHP Custom Theme
- How to modify mobile nav menu text in theme
- Must filter functions receive all arguments passed to them?
- How to get my [shortcode] rendered on the home page, other pages are fine
- Using php inside javascript [closed]
- Why in this WordPress theme I can’t see the Main Menu?
- Ajax URLs without #!, how to prevent falling into single.php on load or reload?
- Get options from database using php class
- Filter wordpress posts without searching the keywords in the post content
- How do I edit the terms output args or array data?
- Variation prices breakdown only for single product page
- WordPress single.php get_header not working
- When I click for the redirect link it is showing the content of index.php instead of single_assignment_page.php
- Apply function.php filter only if url not has /amp/
- Unable to retrieve get_author_posts_url
- Multiple Tag Filtering
- Store user form submitted information in post type
- WordPress files break if I edit them, but adding a closing PHP tag fixes it
- How to disable sub menu items from being created?
- Menu to the right of screen on desktop using Bootstrap 4
- How can i style “echo apply_filters”
- Apply filters when loading post via ajax
- Relative post date in recent posts list
- Get terms of the posts with one query
- append links with unique number string
- Adding Media button to only pages
- Display a list of users with avatar filterable with alphabets
- Sidebar doesnt get updated?
- How to implement conditional PHP in Footer
- Adding php within a return statement [closed]
- ACF | WooCommerce | Theme Development | How to include a /template-part/ that makes use of ACF’s on a custom WooCommerce homepage?
- For each loop will not append to the_content hook
- Pagination not working properly
- How can I fix my pagination?
- How to store the_post_thumbnail() value in a variable
- Modify meta data before saving to database
- How to hide header and footer from page template
- How to change wp-admin and wp-login urls
- Woocommerce Convert existing order to the cart
- WordPress PHP8 Critical Error in class-wp-widget.php
- Is there a hook that I can use when a fatal error occurs?