Figured it out. You just need to add the following to your functions.php:
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
http://codex.wordpress.org/Function_Reference/wpautop#Disabling_the_filter
Related Posts:
- Play Video on Homepage Only
- Text Editor Tags
- Cannot add a class to h2 tag
- Edit custom HTML page from WP admin dashboard
- How to edit a HTML list in WordPress?
- Adding a Calculator to a WordPress Page
- How do I edit text displayed on my browser tab?
- Set different heights per screen size with inline styles CSS into the ‘Text’ section of a Page
- Create multiple custom HTML pages
- Loading custom jQuery and HTML in a WordPress page
- page wordpress add extra unwanted stuff
- Added .lowercase-alpha-list now my list is adding an extra period
- Using pre_get_posts on true pages and static front pages
- How to get page title with the page ID?
- Is there a way to change the default page template selection?
- Can I have two child pages of different parents with the same name?
- Proper method to restrict non logged users into certain pages
- How to get the specific Page’s current ID and use it in a get_page function?
- foreach error on false boolean from get_terms
- How to get a feed for post type ‘page’?
- Multiple pages on a single page
- WordPress post/page pagination (page links) to go back to the first section
- Export only pages and posts with mysql dump
- Backend option to include a javascript file on specific pages?
- Dashboard–> All Pages “How to create folders?”
- Putting footer content in a “page” – Doing it wrong?
- How to create wordpress page that shows posts with specific tags?
- Is there a better way to programmatically insert content into a page?
- How to get the order attribute of a page
- How to Add a Rewrite Rule for Only One Page?
- Are Pages the right thing to use for making sections of a single-page site?
- Allow contributors to create page (but not publish)
- Visiting Webpage ONLY after another page was visited. Possible?
- How do I pass data from page content to the underlying PHP template
- Display page contain in index.php file
- How to redirect login and register pages
- Why do pages in WordPress have a hierarchy but menu’s also have a hierarchy?
- I Changed the Menu Order, But the Page Order Didn’t Change on Front Page
- Custom page template with entirely different design. Is it possible in?
- Combining ‘depth’ with ‘include’ in wp_list_pages()
- Page template no longer exists – metaboxes won’t save
- Create a page that’s to not be indexed or accessible via slug
- My custom template page not loading content inside it?
- Can a user find a child page?
- What is a subpage in WordPress?
- Is it possible to activate page template without manually selecting it in wp-admin?
- Excerpt Now Showing on the Post Page
- How can I use “getarchives_where” to get monthly archives for static pages?
- Google Page Speed Insights not recognising WP-Cofig settings?
- How to remove only pages from Admin Bar?
- How to make a page unsearchable in blog search?
- Query specific Pages
- Phantom page can’t get rid of/can’t get at to change
- ‘x’ Converted to html code in example: 5×10
- Published pages missing
- Getting ACF Field in Page – From the Footer
- How can I send an email when someone uses the HTML download Attribute?
- Rewrite to load homepage for a different url
- logout redirect only from admin page
- Later blog post pages give 404 error
- Different css file not working for the page template I created
- How to change the order of the Front Page so it doesn’t appear first
- 404.php only works if I’m logged in. Everybody else redirects to wp-login.php – why?
- Using index.php as page template
- Static Website No Titles But Still Nav
- What’s the section of code (or loop) which retrieves the Page title and description?
- Embedding Password Protected (Private) “Blog Posts” BLOCK that shows Images and Excerpts on Password Protected Page (not the home page)
- How to backup just pages from my site, but not posts with other post_type values
- Template field missing in page attributes
- How to hide a page in wordpress made for menu
- How to make a page as default page for a theme without a plugin?
- How to change default home link title?
- Recovering a page from the drafts
- Pulling images from the media folder category to display inside a page
- My Password Protected Pages Aren’t Working
- Page view displays not properly after update wordpress
- Display grandchild page content on parent page
- Converting HTML to WordPress theme: integrating pages function and using its text editor, conditional enqueuing
- Display custom_post_type with current taxonmy of a page
- Category Page Custom Layout [closed]
- How to copy specific page content and create child page?
- How to output different content of page on different places in my template
- WordPress slow pages/post, hangs and white text
- Prevent page from displaying
- Previewing Draft shows white page, publishing works fine?
- Changing title bar in browser window of theme “Encounters Lite”
- Custom Filter using meta_value in wordpress admin list not working
- making a pseudo-static page
- Dynamic content in pages
- Javascript will not run properly
- link a custom page into menu
- Website fully loads then immediately crashes in Internet Explorer [closed]
- How to display a page?
- How to create an Single-Portfolio page?
- How can a user login on a wordpress page?
- Fresh WordPress installation not able to simply show page content
- Best approach to create a customized page
- How to make a secondary Pages Screen
- Dynamic activation page in WordPress
- How do you add a filter to wp-block-page-list?