You could try this in your functions.php file
function disable_wpautop_for_pages(){
if ( is_page()){
remove_filter( 'the_content', 'wpautop' );
}
}
add_action('init', 'disable_wpautop_for_pages');
I have not tried this. It’s just a guess
Related Posts:
- How to get post creation date?
- How do you add Read more … link to posts?
- Get current menu_order
- Setting Custom Sort Order of Posts within a Category
- Display post number not post ID number
- has_archive=false on the default post type
- How do I detach images from posts?
- Exclude drafts in all() view of edit.php
- Change slug with custom field
- How do I use element instead of tags in WordPress post content having webP support?
- adding a custom css class to post
- Prevent duplicate posts in wp_insert_post using custom fields
- How can I allow editors to leave comments on posts that have not yet been published?
- get_post_type_archive_link(‘post’) returns current category archive
- Conditional that checks if a current category has any subcategory with posts
- How to activate Markdown in a local installation of WordPress 4.3?
- Add code just after Post content
- Alternating post layout
- Check to see if specific loop has less than certain amount of posts
- Single post as homepage?
- Pagination on single post page?
- Get current category id from post page wordpress
- Sticky post appears twice
- Ajax load more button in Recent posts widget
- Get posts of ONE taxonomy term of custom post type
- WordPress Custom Fields (Checkboxes with multiple values)
- Change user role when post approve
- Retrieve value between 2 post
- Adding buttons to Add New Post and Add New Page
- How do I phpunit test a post output process?
- Stop users posting into category while still seeing contents of the category
- how to replace source ” https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css” in the wordpress backend?
- Editing the default page to show all posts, rather than most recent ones
- Post Loop Missing Most Recent Post
- Start WP Pagination From Number 1 in URL
- How to make a bilingual front-end post using the plugin WP User Frontend and Polylang or qTranslate?
- Avoiding “Missed Schedule” errors when inserting future posts
- How to get posts from a current post’s month?
- Gather posts into a cart/lightbox and share with another user
- How do I extract just the post ID of the first item in whatever WP_Query returns?
- How to display two random-post sections that are each under their own category
- How to Use index.php file for “Blog” Page And this is Not a Home Page
- Sort Custom Post Type by Category ID then Post Name
- Which file do I need to edit the All Posts page in the admin area?
- Show metabox value last post excerpt, title and link
- Tags on products vs tags on blog posts. An easy way to duplicate them
- How to remove fresh posts (latest news) on the main page? [closed]
- Change Post Title For Specific Category
- How to set post status to Delete?
- get_previous_post() while accounting for sticky posts
- How to create a playlist for audio associated with posts per category
- If post does not exist, do something
- WordPress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?
- Display Parent Category of a Post belonging only to Subcategory
- Prevent duplicate pages from being added
- Can I style single post that are in multiple catergories?
- Show 10 latest posts only from users with contributors role
- Calling Permalinks With PHP
- Mailing list submission from a post that doesn’t have a form on it
- Show single post child category from a determined parent
- How to show posts in grid style on search result page?
- My website is showing today’s date instead of published date since db migration to a new wordpress
- How can I change the date format of the revision list?
- Go back to the exact post page number
- Parent menu item does not display posts when I add the sub-items
- Posts not showing content after migration
- How to distinguish pages created by woocommerce?
- Post data across WordPress sites
- Mix post date with post meta value using WP_Query
- Please I want to prefix my WP posts title according to each category
- The first post appears twice
- testing result of $.post with json_encode
- Clean up customize_changeset in DB
- how to print total number of posts filtered by category?
- How to display post excerpt beside post list inside Post of Dashboard
- Integrate video and iframe in a post type gallery
- Add a unique meta desciption
- Displaying a specific sub-category’s posts from wp_query
- Filter question list on substring of metavalue
- Embedding Facebook in blog post not working
- Blog styling in SASS
- Get results from the main wp_query
- Comment Authors of Post On Front Page
- How to list all names and descriptions of a custom taxonomy
- Post List Widget with custom posts and editing the Read More Link
- WordPress Media URLs?
- Pagination for custom query won’t let me back on page 1
- Make a custom URL and link to custom Template
- How to get all post titles starting with numbers and symbols?
- How to inject a post within a loop
- thumbnail image path and file path for gallery thumbnail images
- How to display a certain template element only for posts published within certain time range?
- List direct children of page
- Unable to get posts with category on my page
- How to set value in Query Loop?
- Wp_query WooCommerce products
- No matching template found when using single.php
- WP Rest API feature image breaking react component
- Sort Posts Alphabetically Based on Specific Category (Divi)
- Inserting Media on New Post But Hides Previous Uploads for Editor/Contributor