WP Marketing » Topic: Hanna Code Insert http://wpmarketing.org/forum/topic/hanna-code-insert Wordpress for Internet and Affiliate Marketing en-US Wed, 18 Apr 2012 14:39:13 +0000 http://bbpress.org/?v=1.0.2 <![CDATA[Search]]> q http://wpmarketing.org/forum/search.php hanadaddy on "Hanna Code Insert" http://wpmarketing.org/forum/topic/hanna-code-insert#post-136 Mon, 15 Mar 2010 13:13:15 +0000 hanadaddy 136@http://wpmarketing.org/forum/ <p>Hello<br /> So you want to use this function in your theme template files. There is no function created for this purpose, but you can simple use below codes in your template file.</p> <p>Just change <code>$entry_name</code> variable to your entry name used in the Hana Code settings page. </p> <pre> &lt;?php $entry_name="entry123"; if ($hana_code) { echo $hana_code-&gt;hana_code_return("[hana-code-insert name='$entry_name' /]"); } ?&gt; </pre> tagriffith on "Hanna Code Insert" http://wpmarketing.org/forum/topic/hanna-code-insert#post-135 Mon, 15 Mar 2010 12:25:11 +0000 tagriffith 135@http://wpmarketing.org/forum/ <p>Any help someone can give me on this would be great! The PHP does not recognize the code. I contacted StudioPress and they said that you would to create a template code. That way I can put the code in the templates code and use it on the header. </p> tagriffith on "Hanna Code Insert" http://wpmarketing.org/forum/topic/hanna-code-insert#post-129 Tue, 02 Mar 2010 15:50:06 +0000 tagriffith 129@http://wpmarketing.org/forum/ <p>How can you insert the Hanna Code into a theme template? I want to use this code to put a flash web banner on one of the StudioPress themes and it does not recognize it as code in the php template.</p> <p>Thanks! </p>