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
- How to get current page ID outside the loop?
- Get the content of a specific page (by ID)
- featured image as background image on pages
- Show Default Editor on Blog Page ( Administration Panel )
- Order by menu_order and title?
- WP Page and Subdirectory with same name
- How to redirect on particular page in wordpress? [closed]
- How to inject custom url path for page ?
- How to display page title+link of page created by user
- get_page_by_title not working when used with a variable
- WordPress twenty eleven sidebar on Pages
- Debugging shortcode problems
- Selecting An image from the Media LIbrary on the frontend
- How to disable Page Attributes dropdown in wp-admin
- How to show updated edit on preview URL without clicking preview button
- How to redirect a page to subdomain?
- How do I add a front menu button that redirects to another website or sub-domain?
- Clean URL link for page without number
- How can I have two content titles?
- Get the Page Content,without generating HTML
- How can I split long posts into pages?
- Slug is redirecting to 404
- Include content from one page to another
- conditional tags- how to use with shortcodes
- List all private pages user has access rights to read
- “next page” of parent in infinite loop
- Access the same page from multiple urls (wildcard)
- How to update the counter of private pages in the dashboard?
- Using in-build Visual Composer param types in custom param types
- Google Analytics tracking code on just one page?
- Layout Builder.
- Pass data from one page to anothe file/page in wordpress
- Display child pages in a parent page? [closed]
- How to use is_admin in page content?
- This code won’t find authors page?
- WordPress backend:How to hide some specific pages under Pages–>All Pages
- Different header for each page in child theme of twenty thirteen
- Change a Page’s Header Image
- how can i remove page title on desktop view
- Page menu not showing in admin, new Page button missing in toolbar too
- Keep page hierarchy in wp_list_pages, even if on a child or grandchild
- Order by modified date working in POSTS but not PAGES
- Allow a user to edit their own page and profile only
- WordPress Page doesn’t load the template selected
- on page creation few inline style properties gets removed
- Custom folder for wordpress page templates
- way to make all pages with certain tags public?
- Page not appearing under its Parent
- Separate URL for a specific page
- Pages that don’t look like blog posts?
- Can I use Pages like a Wiki
- list child-pages as normal pages?
- return page name in url
- Next and Previous Page links based on ‘Order’ attribute
- Create multiple pages with tables from json file
- Search anything from a Child and Sub-Pages of their Parent page
- Can i use 2 page content-forum & content-forum-slug on bbpress?
- Attaching a file to a page without adding to media library?
- Change page width in refined magazine/mag and news theme
- How do you run code on a specific page without missing the init hook?
- Groping Pages Per Department Option
- Requiring a Visitor to Enter a Password Each Time They visit a Page
- Display meta data attribute in user profile
- how to output HTML tags in post_content and not as plain text
- WordPress default theme cannot get full page on entry content div
- WordPress displays widgets out of whack
- How to remove the duplicate title tags and duplicate meta descriptions?
- WordPress form submit to custom page template does not work
- Two different layouts for the same post
- My page title turns into a h2 tag – What to do?
- How do I locate a third party page represented as a slug in my WordPress website?
- Customise the_title in admin area
- problem with loading pages
- Content not displaying on page
- Blank white space where header was [closed]
- Featured Image not displaying in a page
- Display child pages on homepage template
- Set order acs and no paging for archive page
- Pageview all of sudden not working
- Childpage title + content on Parent Page
- Filter posts by author selected in page
- Temporary download page or restrict static download page based on how the user got to the page?
- search page different results
- List Parent page with sub pages
- Naming custom page templates
- How can I use Page editor for two separate templates?
- Sort the data in WordPress using get-page-by-title
- Adding a filter to wp_edit_posts_query() to prevent hierarchical display of pages
- WordPress is picking up links that don’t exist