<?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: WordPress 2.5 ShortCodes API Overview</title>
	<atom:link href="http://planetozh.com/blog/2008/03/wordpress-25-shortcodes-api-overview/feed/" rel="self" type="application/rss+xml" />
	<link>http://planetozh.com/blog/2008/03/wordpress-25-shortcodes-api-overview/?source=rss</link>
	<description>A bit of my personal life, mainly focused on my kids. A bit of code, mainly focused on Wordpress and PHP. Overall, bits of nothing in particular.</description>
	<lastBuildDate>Thu, 18 Mar 2010 03:25:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Alper</title>
		<link>http://planetozh.com/blog/2008/03/wordpress-25-shortcodes-api-overview/comment-page-1/#comment-96429</link>
		<dc:creator>Alper</dc:creator>
		<pubDate>Sun, 25 Oct 2009 02:22:41 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/2008/03/wordpress-25-shortcodes-api-overview/#comment-96429</guid>
		<description>Problem is solved, i&#039;am sorry for excess post. You all right, i&#039;ve forgotten an echo command for testing.. Thanks for that nice writing..</description>
		<content:encoded><![CDATA[<p>Problem is solved, i&#8217;am sorry for excess post. You all right, i&#8217;ve forgotten an echo command for testing.. Thanks for that nice writing..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alper</title>
		<link>http://planetozh.com/blog/2008/03/wordpress-25-shortcodes-api-overview/comment-page-1/#comment-96428</link>
		<dc:creator>Alper</dc:creator>
		<pubDate>Sun, 25 Oct 2009 02:03:08 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/2008/03/wordpress-25-shortcodes-api-overview/#comment-96428</guid>
		<description>Hi Ozh i have the same problem with Jasmine and my shortcode returns the code part as always, i mean my shortcode is [ gpc id= &quot;name&quot; ] and on the top of all my pages/posts that i used shortcode name variable is seen.
in the function tried that if user enter &quot;name&quot; as shortcode show a div that named as &quot;name&quot;.. How can i stop that? Thanks right now..</description>
		<content:encoded><![CDATA[<p>Hi Ozh i have the same problem with Jasmine and my shortcode returns the code part as always, i mean my shortcode is [ gpc id= "name" ] and on the top of all my pages/posts that i used shortcode name variable is seen.<br />
in the function tried that if user enter &#8220;name&#8221; as shortcode show a div that named as &#8220;name&#8221;.. How can i stop that? Thanks right now..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ozh</title>
		<link>http://planetozh.com/blog/2008/03/wordpress-25-shortcodes-api-overview/comment-page-1/#comment-88451</link>
		<dc:creator>Ozh</dc:creator>
		<pubDate>Wed, 18 Feb 2009 19:20:44 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/2008/03/wordpress-25-shortcodes-api-overview/#comment-88451</guid>
		<description>Jasmine » Your shortcode function *echoes* something when it&#039;s supposed to *return* content.</description>
		<content:encoded><![CDATA[<p>Jasmine » Your shortcode function *echoes* something when it&#8217;s supposed to *return* content.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jasmine</title>
		<link>http://planetozh.com/blog/2008/03/wordpress-25-shortcodes-api-overview/comment-page-1/#comment-88447</link>
		<dc:creator>Jasmine</dc:creator>
		<pubDate>Wed, 18 Feb 2009 17:38:47 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/2008/03/wordpress-25-shortcodes-api-overview/#comment-88447</guid>
		<description>I am trying to use short code to display the post id inside a post, however when I use [id] it is showing the post ID at the start of the post of the post content, not where I have typed it.

The shortcode I am using, I have placed this in the plugin folder.

[php]function shortcode_id() {
   $id = the_ID();
echo $id;
}
add_shortcode(&#039;id&#039;, &#039;shortcode_id&#039;);
[/php]

What displays on the post page: 10741This is a good post. This is Post ID:

I also tried: [php]echo the_ID();[/php] but it doesn&#039;t work either.</description>
		<content:encoded><![CDATA[<p>I am trying to use short code to display the post id inside a post, however when I use [id] it is showing the post ID at the start of the post of the post content, not where I have typed it.</p>
<p>The shortcode I am using, I have placed this in the plugin folder.</p>
<div class="igBar"><span id="lphp-1"><a href="#" onclick="javascript:showPlainTxt('php-1'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-1">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> shortcode_id<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color:#0000FF;">$id</span> = the_ID<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000066;">echo</span> <span style="color:#0000FF;">$id</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">add_shortcode<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'id'</span>, <span style="color:#FF0000;">'shortcode_id'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>What displays on the post page: 10741This is a good post. This is Post ID:</p>
<p>I also tried:
<div class="igBar"><span id="lphp-2"><a href="#" onclick="javascript:showPlainTxt('php-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-2">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000066;">echo</span> the_ID<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p> but it doesn't work either.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WordPress Shortcode API - WP Engineer</title>
		<link>http://planetozh.com/blog/2008/03/wordpress-25-shortcodes-api-overview/comment-page-1/#comment-83525</link>
		<dc:creator>WordPress Shortcode API - WP Engineer</dc:creator>
		<pubDate>Mon, 17 Nov 2008 13:08:11 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/2008/03/wordpress-25-shortcodes-api-overview/#comment-83525</guid>
		<description>[...] It&#039;s easy to understand and to use. I will give a short introduction with some results below. The functionality and all details behind, plus a plugin with different examples are available at Ozh. [...]</description>
		<content:encoded><![CDATA[<p>[...] It's easy to understand and to use. I will give a short introduction with some results below. The functionality and all details behind, plus a plugin with different examples are available at Ozh. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WordPress 2.5 Shortcode API - bueltge.de [by:ltge.de]</title>
		<link>http://planetozh.com/blog/2008/03/wordpress-25-shortcodes-api-overview/comment-page-1/#comment-54672</link>
		<dc:creator>WordPress 2.5 Shortcode API - bueltge.de [by:ltge.de]</dc:creator>
		<pubDate>Wed, 28 May 2008 05:18:19 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/2008/03/wordpress-25-shortcodes-api-overview/#comment-54672</guid>
		<description>[...] kleine Einf&#252;hrung und ersichtliche Erfolge gibt es in Kurzversion in den folgenden Zeilen. Wie es genau geht und ein Plugin mit verschiedenen Beispielen gibt es bei Ozh, der derzeit auch die neue WordPress Funktion [...]</description>
		<content:encoded><![CDATA[<p>[...] kleine Einf&uuml;hrung und ersichtliche Erfolge gibt es in Kurzversion in den folgenden Zeilen. Wie es genau geht und ein Plugin mit verschiedenen Beispielen gibt es bei Ozh, der derzeit auch die neue WordPress Funktion [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ozh</title>
		<link>http://planetozh.com/blog/2008/03/wordpress-25-shortcodes-api-overview/comment-page-1/#comment-52965</link>
		<dc:creator>Ozh</dc:creator>
		<pubDate>Sun, 11 May 2008 23:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/2008/03/wordpress-25-shortcodes-api-overview/#comment-52965</guid>
		<description>Paul Menard » I had the same concern and proposed that instead/in parallel of [stuff] it should be &lt;!--stuff--&gt; but despite some traction the idea was rejected...
So basically, yes, when you disable a plugin that parses shortcodes, everybody see them. Quite lame.</description>
		<content:encoded><![CDATA[<p>Paul Menard » I had the same concern and proposed that instead/in parallel of [stuff] it should be &lt;!--stuff--> but despite some traction the idea was rejected...<br />
So basically, yes, when you disable a plugin that parses shortcodes, everybody see them. Quite lame.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Menard</title>
		<link>http://planetozh.com/blog/2008/03/wordpress-25-shortcodes-api-overview/comment-page-1/#comment-52963</link>
		<dc:creator>Paul Menard</dc:creator>
		<pubDate>Sun, 11 May 2008 23:07:56 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/2008/03/wordpress-25-shortcodes-api-overview/#comment-52963</guid>
		<description>So one thing I&#039;ve wondered about with the new shortcode. Since this is created in the actual post content what safe guards are in place to prevent the unfiltered shortcode from being passed the the presentation layer or viewable user version? 

This was my biggest issue with some of the earlier shortcode plugin for like SWF or youtube videos. I add the code and link to the video into my post. Then if later I deactivated the plugin or changed plugins the shortcode would be revealed to the user.</description>
		<content:encoded><![CDATA[<p>So one thing I've wondered about with the new shortcode. Since this is created in the actual post content what safe guards are in place to prevent the unfiltered shortcode from being passed the the presentation layer or viewable user version? </p>
<p>This was my biggest issue with some of the earlier shortcode plugin for like SWF or youtube videos. I add the code and link to the video into my post. Then if later I deactivated the plugin or changed plugins the shortcode would be revealed to the user.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johnbillion</title>
		<link>http://planetozh.com/blog/2008/03/wordpress-25-shortcodes-api-overview/comment-page-1/#comment-49233</link>
		<dc:creator>johnbillion</dc:creator>
		<pubDate>Fri, 28 Mar 2008 16:20:17 +0000</pubDate>
		<guid isPermaLink="false">http://planetozh.com/blog/2008/03/wordpress-25-shortcodes-api-overview/#comment-49233</guid>
		<description>Ozh, I&#039;m really loving your introductions to the new APIs in WordPress. Great examples and great writing. Thanks and keep it up!</description>
		<content:encoded><![CDATA[<p>Ozh, I'm really loving your introductions to the new APIs in WordPress. Great examples and great writing. Thanks and keep it up!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
