<?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: Shortcode Shortcomings</title>
	<atom:link href="http://hackadelic.com/shortcode-shortcomings/feed" rel="self" type="application/rss+xml" />
	<link>http://hackadelic.com/shortcode-shortcomings</link>
	<description>Think More, Code Less! - Intelligent WordPress Solutions</description>
	<lastBuildDate>Fri, 20 Apr 2012 12:51:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: Hackadelic</title>
		<link>http://hackadelic.com/shortcode-shortcomings/comment-page-1#comment-6050</link>
		<dc:creator>Hackadelic</dc:creator>
		<pubDate>Fri, 11 Feb 2011 15:52:11 +0000</pubDate>
		<guid isPermaLink="false">http://hackadelic.com/?p=37#comment-6050</guid>
		<description>Travis, you are right about TinyMCE. The problem is indeed related to wpauotp and shortcode_unautop. Alas, simply turning them off is not the solution.

But fortunately, I&#039;ve just found a workable fix for that. :-)

At least so far, it seems to fix things the way I want.</description>
		<content:encoded><![CDATA[<p>Travis, you are right about TinyMCE. The problem is indeed related to wpauotp and shortcode_unautop. Alas, simply turning them off is not the solution.</p>
<p>But fortunately, I&#8217;ve just found a workable fix for that. <img src='http://hackadelic.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>At least so far, it seems to fix things the way I want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Travis</title>
		<link>http://hackadelic.com/shortcode-shortcomings/comment-page-1#comment-6019</link>
		<dc:creator>Travis</dc:creator>
		<pubDate>Tue, 18 Jan 2011 14:22:53 +0000</pubDate>
		<guid isPermaLink="false">http://hackadelic.com/?p=37#comment-6019</guid>
		<description>I recently had the same issue on a Wordpress site I&#039;ve built. The problem for me was that I was using a plug-in to disable the &quot;wpautop&quot; auto-formatting of content, but this plug-in was not disabling the &quot;shortcode_unautop&quot; filter as well, causing Wordpress to &quot;eat&quot; paragraph tags in the content as you described. 

The plug-in I am using is called &quot;ps_disable_auto_formatting&quot;: http://wordpress.org/extend/plugins/ps-disable-auto-formatting/

I fixed it by adding:  remove_filter(&#039;the_content&#039;, &#039;shortcode_unautop&#039;); after line 72 of the main plug-in file.

This kind person has a post about it here, for a different plug-in &quot;wp_unformatted&quot;: http://spielwiese.fontein.de/2010/09/27/a-non-wordpress-bug/

Perhaps this is related? It certainly worked for me, and it might explain why the Wordpress guys got a bit annoyed, since this bug doesn&#039;t seem to be their fault.

TinyMCE has nothing to do with this particular bug, and I find it to be a pretty solid wysiwyg editor, given what it has to actually do. I&#039;d also comment that the very reason I use &quot;ps_disable_auto_formatting&quot; is that I find it makes TinyMCE work the way it was intended, as wpautop seems to completely destroy paragraph tags as you edit content in the editor which is very annoying.

Good luck!</description>
		<content:encoded><![CDATA[<p>I recently had the same issue on a WordPress site I&#8217;ve built. The problem for me was that I was using a plug-in to disable the &#8220;wpautop&#8221; auto-formatting of content, but this plug-in was not disabling the &#8220;shortcode_unautop&#8221; filter as well, causing WordPress to &#8220;eat&#8221; paragraph tags in the content as you described. </p>
<p>The plug-in I am using is called &#8220;ps_disable_auto_formatting&#8221;: <a href="http://wordpress.org/extend/plugins/ps-disable-auto-formatting/" rel="nofollow">http://wordpress.org/extend/plugins/ps-disable-auto-formatting/</a></p>
<p>I fixed it by adding:  remove_filter(&#8216;the_content&#8217;, &#8216;shortcode_unautop&#8217;); after line 72 of the main plug-in file.</p>
<p>This kind person has a post about it here, for a different plug-in &#8220;wp_unformatted&#8221;: <a href="http://spielwiese.fontein.de/2010/09/27/a-non-wordpress-bug/" rel="nofollow">http://spielwiese.fontein.de/2010/09/27/a-non-wordpress-bug/</a></p>
<p>Perhaps this is related? It certainly worked for me, and it might explain why the WordPress guys got a bit annoyed, since this bug doesn&#8217;t seem to be their fault.</p>
<p>TinyMCE has nothing to do with this particular bug, and I find it to be a pretty solid wysiwyg editor, given what it has to actually do. I&#8217;d also comment that the very reason I use &#8220;ps_disable_auto_formatting&#8221; is that I find it makes TinyMCE work the way it was intended, as wpautop seems to completely destroy paragraph tags as you edit content in the editor which is very annoying.</p>
<p>Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre</title>
		<link>http://hackadelic.com/shortcode-shortcomings/comment-page-1#comment-5877</link>
		<dc:creator>Andre</dc:creator>
		<pubDate>Mon, 01 Nov 2010 05:29:49 +0000</pubDate>
		<guid isPermaLink="false">http://hackadelic.com/?p=37#comment-5877</guid>
		<description>First, I know this is an older post but I still had to comment...exactly the issues I have experienced with the WP editor and shortcodes...and it seems to be ongoing and the WP development team just won&#039;t listen (in fact one got quite upset with me when I mentioned they needed to get a quality editor). Long story short, shortcodes are a great idea for WP users but at the same time, it&#039;s extremely buggy for typical users who have to work with the editor WP has. I&#039;ve never been a fan of tinymce which is ultimately a nasty nasty editor and it&#039;s what many others are based on. It changes my code, it doesn&#039;t play well with shortcodes, and too proprietary. The irony here is that I use Joomla as well and the editor I use is the JCE editor which is based on the tinymce, but the development team there is top notch with this one.</description>
		<content:encoded><![CDATA[<p>First, I know this is an older post but I still had to comment&#8230;exactly the issues I have experienced with the WP editor and shortcodes&#8230;and it seems to be ongoing and the WP development team just won&#8217;t listen (in fact one got quite upset with me when I mentioned they needed to get a quality editor). Long story short, shortcodes are a great idea for WP users but at the same time, it&#8217;s extremely buggy for typical users who have to work with the editor WP has. I&#8217;ve never been a fan of tinymce which is ultimately a nasty nasty editor and it&#8217;s what many others are based on. It changes my code, it doesn&#8217;t play well with shortcodes, and too proprietary. The irony here is that I use Joomla as well and the editor I use is the JCE editor which is based on the tinymce, but the development team there is top notch with this one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hackadelic</title>
		<link>http://hackadelic.com/shortcode-shortcomings/comment-page-1#comment-4944</link>
		<dc:creator>Hackadelic</dc:creator>
		<pubDate>Sun, 18 Oct 2009 09:20:58 +0000</pubDate>
		<guid isPermaLink="false">http://hackadelic.com/?p=37#comment-4944</guid>
		<description>Hi Dave,

it is not mine to  improve the shortcode handling in WordPress. It is in the hands of the WordPress team.

One thing that I&#039;ve discovered since is that it is probably not the API, or not the API alone. Much of it is &quot;courtesy&quot; of WP&#039;s TinyMCE integration.</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>it is not mine to  improve the shortcode handling in WordPress. It is in the hands of the WordPress team.</p>
<p>One thing that I&#8217;ve discovered since is that it is probably not the API, or not the API alone. Much of it is &#8220;courtesy&#8221; of WP&#8217;s TinyMCE integration.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Doolin</title>
		<link>http://hackadelic.com/shortcode-shortcomings/comment-page-1#comment-4940</link>
		<dc:creator>Dave Doolin</dc:creator>
		<pubDate>Sat, 17 Oct 2009 19:37:05 +0000</pubDate>
		<guid isPermaLink="false">http://hackadelic.com/?p=37#comment-4940</guid>
		<description>Any progress made on this issue.  This is my first stop because you were first up in Google... I may find out more as I dig deeper...</description>
		<content:encoded><![CDATA[<p>Any progress made on this issue.  This is my first stop because you were first up in Google&#8230; I may find out more as I dig deeper&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray</title>
		<link>http://hackadelic.com/shortcode-shortcomings/comment-page-1#comment-558</link>
		<dc:creator>Ray</dc:creator>
		<pubDate>Wed, 11 Mar 2009 03:46:07 +0000</pubDate>
		<guid isPermaLink="false">http://hackadelic.com/?p=37#comment-558</guid>
		<description>The shortcode API is a big problem with Wordpress.

I know there are content creators who use the Visual Editor to input their content and shortcodes.

When they do this, paragraph tags wrap around the shortcode and gets rendered when they publish their article.

This, of course, does not validate the HTML!

This is something Wordpress has to address!</description>
		<content:encoded><![CDATA[<p>The shortcode API is a big problem with WordPress.</p>
<p>I know there are content creators who use the Visual Editor to input their content and shortcodes.</p>
<p>When they do this, paragraph tags wrap around the shortcode and gets rendered when they publish their article.</p>
<p>This, of course, does not validate the HTML!</p>
<p>This is something WordPress has to address!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hackadelic</title>
		<link>http://hackadelic.com/shortcode-shortcomings/comment-page-1#comment-559</link>
		<dc:creator>Hackadelic</dc:creator>
		<pubDate>Wed, 11 Mar 2009 02:59:55 +0000</pubDate>
		<guid isPermaLink="false">http://hackadelic.com/?p=37#comment-559</guid>
		<description>Ray, you are so damn right. Shortcodes &lt;strong&gt;could&lt;/strong&gt; be so usefull for assembling macro-content from micro-content, if it wasn&#039;t for the crappy API implementation.

The &quot;paragraph wrapping&quot; thing (and other ) occurs even in the HTML editor - AFAICT it is due to built-in WordPress filters that are triggered before editor content is saved to the database, and after it is read from the database. I&#039;m experimenting with another (not yet published) shortcode right now, and it blows my mind that when the shortcode returns something wrapped in a block element (like a &lt;tt&gt;div&lt;/tt&gt;), WordPress prepends a &lt;p&gt; tag &lt;strong&gt;without&lt;/strong&gt; closing it, which my browser interprets as a &lt;p&gt;&lt;/p&gt;  (but other browsers have other interpretations).

I sure hope WP improves on this dramatically.</description>
		<content:encoded><![CDATA[<p>Ray, you are so damn right. Shortcodes <strong>could</strong> be so usefull for assembling macro-content from micro-content, if it wasn&#8217;t for the crappy API implementation.</p>
<p>The &#8220;paragraph wrapping&#8221; thing (and other ) occurs even in the HTML editor &#8211; AFAICT it is due to built-in WordPress filters that are triggered before editor content is saved to the database, and after it is read from the database. I&#8217;m experimenting with another (not yet published) shortcode right now, and it blows my mind that when the shortcode returns something wrapped in a block element (like a <tt>div</tt>), WordPress prepends a &lt;p&gt; tag <strong>without</strong> closing it, which my browser interprets as a &lt;p&gt;&lt;/p&gt;  (but other browsers have other interpretations).</p>
<p>I sure hope WP improves on this dramatically.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

