<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>WP Marketing &#187; Tag: custom shortcode - Recent Topics</title>
		<link>http://wpmarketing.org/forum/tags/custom-shortcode</link>
		<description>Wordpress for Internet and Affiliate Marketing</description>
		<language>en-US</language>
		<pubDate>Wed, 08 Feb 2012 12:39:11 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://wpmarketing.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://wpmarketing.org/forum/rss/tags/custom-shortcode/topics" rel="self" type="application/rss+xml" />

		<item>
			<title>hanadaddy on "Hana Code Insert v2.2"</title>
			<link>http://wpmarketing.org/forum/topic/hana-code-insert-v22#post-16</link>
			<pubDate>Sun, 04 Oct 2009 14:17:00 +0000</pubDate>
			<dc:creator>hanadaddy</dc:creator>
			<guid isPermaLink="false">16@http://wpmarketing.org/forum/</guid>
			<description>&#60;p&#62;&#60;strong&#62;v2.2 (10/04/2009)&#60;/strong&#62; : &#60;/p&#62;
&#60;p&#62;&#60;strong&#62;1. PHP code content evaluation&#60;/strong&#62;&#60;br /&#62;
Some modification on PHP evaluation that you can use &#60;code&#62;&#38;lt;?php&#60;/code&#62; and &#60;code&#62;?&#38;gt;&#60;/code&#62; within the entry content for PHP evaluation. &#60;/p&#62;
&#60;p&#62;So, in the previous version, if you wanted PHP code output, you could not use &#60;code&#62;&#38;lt;?php&#60;/code&#62; and &#60;code&#62;?&#38;gt;&#60;/code&#62;. But now you can use them inside the entry item.&#60;/p&#62;
&#60;p&#62;Previously you could only define PHP codes only.&#60;/p&#62;
&#60;pre&#62;
print &#34;&#38;lt;div style='border:1px dotted red; padding: 5px;'&#38;gt;&#34;;
print date(&#34;m/d/Y H:i:s&#34;);
print &#34;&#38;lt;/div&#38;gt;&#34;;
&#60;/pre&#62;
&#60;p&#62;But now, below code will work too.&#60;/p&#62;
&#60;pre&#62;
&#38;lt;div style='border:1px dotted red; padding: 5px;'&#38;gt;
&#38;lt;?php print date(&#34;m/d/Y H:i:s&#34;);?&#38;gt;
&#38;lt;/div&#38;gt;
&#60;/pre&#62;
&#60;p&#62;&#60;strong&#62;2. Custom ShortCode&#60;/strong&#62;&#60;br /&#62;
Also extra feature for custom short code is added. You can define your own custom short code prefix and post fix. So you don't have to use &#60;code&#62;[hana-code-insert]&#60;/code&#62; shortcode any more.&#60;/p&#62;
&#60;p&#62;If defined, custom short code format can be used instead of &#60;code&#62;[hana-code-insert name=&#38;#39;Entry Name&#38;#39; /]&#60;/code&#62;. For example, if you define &#60;code&#62;{{&#60;/code&#62; for start indicator, &#60;code&#62;}}&#60;/code&#62; for end indicator, you can use &#60;code&#62;{{Entry Name}}&#60;/code&#62;. But beware, your new shortcode format may conflict with other plugins and cause one or more plugins to fail. &#60;/p&#62;
&#60;p&#62;There are some restrictions. &#60;code&#62;^&#60;/code&#62; and &#60;code&#62;\&#60;/code&#62; characters are not allowed. And start and end indicators should not be used part of entry name. HTML comment tag is a good candidate for the customs shortcodes indicators. (Start indicator &#60;code&#62;&#38;lt;!--&#60;/code&#62; , End indicator : &#60;code&#62;--&#38;gt;&#60;/code&#62;) In this way, even if the Hana Code Insert is disabled, these shortcodes will not show this way.&#60;/p&#62;
&#60;p&#62;Some of the tested custom Short Codes&#60;/p&#62;
&#60;pre&#62;
===================
[[testing123]]
===================
~~testing123~~
===================
{{testing123}}
===================
This time it uses html comment.
&#38;lt;!-- testing123 --&#38;gt;
===================

[hana-code-insert name='testing123' /]
&#60;/pre&#62;
&#60;p&#62;I am planning to implement Text Widget Support and enhancement in the Admin settings screen in the next version. (Additional description to recognize code snippet better, Search Fuction, etc..)&#60;/p&#62;
&#60;p&#62;Enjoy! Let me know if you experience any problem.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>

