

<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Remove WordPress AutoP Filter</title>
	<atom:link href="http://wpvibe.com/remove-wordpress-autop-filter-21/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpvibe.com/remove-wordpress-autop-filter-21/</link>
	<description>Just another EMV Network Site site</description>
	<lastBuildDate>Fri, 14 Oct 2011 03:38:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Jonathan Dingman</title>
		<link>http://wpvibe.com/remove-wordpress-autop-filter-21/#comment-14</link>
		<dc:creator>Jonathan Dingman</dc:creator>
		<pubDate>Sat, 27 Nov 2010 06:08:08 +0000</pubDate>
		<guid isPermaLink="false">http://wpvibe.com/?p=21#comment-14</guid>
		<description>Hi Chris,

This is what I use on one of my sites, then just add a custom field on each post/page you don&#039;t want autop on.

custom field name = disable_autop, value = whatever, true is fine.

&lt;code&gt;function disable_autop() {
	global $post;
	$disable_autop_var = get_post_meta($post-&gt;ID, &#039;disable_autop&#039;, TRUE);
	//var_dump(get_post_meta($post-&gt;ID,&#039;disable_autop&#039;, TRUE));
		if ( !empty( $disable_autop_var ) ) {
		remove_filter(&#039;the_content&#039;, &#039;wpautop&#039;);
		}
	}
add_action (&#039;loop_start&#039;, &#039;disable_autop&#039;);&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi Chris,</p>
<p>This is what I use on one of my sites, then just add a custom field on each post/page you don&#8217;t want autop on.</p>
<p>custom field name = disable_autop, value = whatever, true is fine.</p>
<p><code>function disable_autop() {<br />
	global $post;<br />
	$disable_autop_var = get_post_meta($post-&gt;ID, 'disable_autop', TRUE);<br />
	//var_dump(get_post_meta($post-&gt;ID,'disable_autop', TRUE));<br />
		if ( !empty( $disable_autop_var ) ) {<br />
		remove_filter('the_content', 'wpautop');<br />
		}<br />
	}<br />
add_action ('loop_start', 'disable_autop');</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://wpvibe.com/remove-wordpress-autop-filter-21/#comment-13</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sat, 27 Nov 2010 01:22:09 +0000</pubDate>
		<guid isPermaLink="false">http://wpvibe.com/?p=21#comment-13</guid>
		<description>Have been working this for a while, I have a third party plug in that needs java script to run. The main script gets called from the header.php template file and gets into each page no problem, however in order to use these third party tools you have to call a second javascript code from the page that you want it to appear in. The posts / pages always paste  tags so I want to use the filter you have created here, but it pulls out all of the  tags and destroys all paragraphs for all post and pages for the complete website. So I have a choice between these third party tools or recreating all the paragraphs for the entire website... not good. I love the idea of have this as a plug-in to work across multiple themes. One Better would be having the plug in create a button in TinyMCE that says... No auto  for this post pls. That way you can pick and choose Per Page what you want auto  tags on.

Any Thoughts?</description>
		<content:encoded><![CDATA[<p>Have been working this for a while, I have a third party plug in that needs java script to run. The main script gets called from the header.php template file and gets into each page no problem, however in order to use these third party tools you have to call a second javascript code from the page that you want it to appear in. The posts / pages always paste  tags so I want to use the filter you have created here, but it pulls out all of the  tags and destroys all paragraphs for all post and pages for the complete website. So I have a choice between these third party tools or recreating all the paragraphs for the entire website&#8230; not good. I love the idea of have this as a plug-in to work across multiple themes. One Better would be having the plug in create a button in TinyMCE that says&#8230; No auto  for this post pls. That way you can pick and choose Per Page what you want auto  tags on.</p>
<p>Any Thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sagive</title>
		<link>http://wpvibe.com/remove-wordpress-autop-filter-21/#comment-12</link>
		<dc:creator>sagive</dc:creator>
		<pubDate>Thu, 02 Sep 2010 23:10:07 +0000</pubDate>
		<guid isPermaLink="false">http://wpvibe.com/?p=21#comment-12</guid>
		<description>my autop isnt working.. :( i have created my own template
and cant dind information about how to activate that.. ideas ?</description>
		<content:encoded><![CDATA[<p>my autop isnt working.. <img src='http://wpvibe.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  i have created my own template<br />
and cant dind information about how to activate that.. ideas ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

