<?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: Tutorial: How to write a WordPress Plugin?</title>
	<atom:link href="http://corpocrat.com/2009/12/27/tutorial-how-to-write-a-wordpress-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://corpocrat.com/2009/12/27/tutorial-how-to-write-a-wordpress-plugin/</link>
	<description>Daily Blog from Internet Entrepreneur/Webmaster</description>
	<lastBuildDate>Tue, 07 Feb 2012 20:25:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Anubhav Misra</title>
		<link>http://corpocrat.com/2009/12/27/tutorial-how-to-write-a-wordpress-plugin/#comment-23736</link>
		<dc:creator>Anubhav Misra</dc:creator>
		<pubDate>Tue, 07 Feb 2012 09:32:49 +0000</pubDate>
		<guid isPermaLink="false">http://corpocrat.com/?p=904#comment-23736</guid>
		<description>Great post. It was very helpful!</description>
		<content:encoded><![CDATA[<p>Great post. It was very helpful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: delaram</title>
		<link>http://corpocrat.com/2009/12/27/tutorial-how-to-write-a-wordpress-plugin/#comment-23721</link>
		<dc:creator>delaram</dc:creator>
		<pubDate>Sun, 05 Feb 2012 08:35:57 +0000</pubDate>
		<guid isPermaLink="false">http://corpocrat.com/?p=904#comment-23721</guid>
		<description>don&#039;t delete the add_action statement
simply replace echo “Hello World”;

with echo get_option(&#039;hello_world_data&#039;);</description>
		<content:encoded><![CDATA[<p>don&#8217;t delete the add_action statement<br />
simply replace echo “Hello World”;</p>
<p>with echo get_option(&#8216;hello_world_data&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LKM</title>
		<link>http://corpocrat.com/2009/12/27/tutorial-how-to-write-a-wordpress-plugin/#comment-23709</link>
		<dc:creator>LKM</dc:creator>
		<pubDate>Fri, 03 Feb 2012 10:57:19 +0000</pubDate>
		<guid isPermaLink="false">http://corpocrat.com/?p=904#comment-23709</guid>
		<description>Take 3!, I don&#039;t think this form likes my php tags and stripped out my code –

Try in hello-world.php –
add_action(‘init’,’hello_world’);
function hello_world()
{
return get_option(‘hello_world_data’);
}

note ‘return’ instead of ‘echo’

And then in your template file such as page.php or single.php try this –

			if(function_exists(&#039;hello_world&#039;)) {
echo hello_world();
}

Note the added ‘echo’</description>
		<content:encoded><![CDATA[<p>Take 3!, I don&#8217;t think this form likes my php tags and stripped out my code –</p>
<p>Try in hello-world.php –<br />
add_action(‘init’,’hello_world’);<br />
function hello_world()<br />
{<br />
return get_option(‘hello_world_data’);<br />
}</p>
<p>note ‘return’ instead of ‘echo’</p>
<p>And then in your template file such as page.php or single.php try this –</p>
<p>			if(function_exists(&#8216;hello_world&#8217;)) {<br />
echo hello_world();<br />
}</p>
<p>Note the added ‘echo’</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LKM</title>
		<link>http://corpocrat.com/2009/12/27/tutorial-how-to-write-a-wordpress-plugin/#comment-23708</link>
		<dc:creator>LKM</dc:creator>
		<pubDate>Fri, 03 Feb 2012 10:55:26 +0000</pubDate>
		<guid isPermaLink="false">http://corpocrat.com/?p=904#comment-23708</guid>
		<description>Take 2, sorry, didn&#039;t paste in all my code - 

Try in hello-world.php –
add_action(‘init’,&#039;hello_world’);
function hello_world()
{
return get_option(‘hello_world_data’);
}

note ‘return’ instead of ‘echo’

And then in your template file such as page.php or single.php try this –




Note the added ‘echo’</description>
		<content:encoded><![CDATA[<p>Take 2, sorry, didn&#8217;t paste in all my code &#8211; </p>
<p>Try in hello-world.php –<br />
add_action(‘init’,&#8217;hello_world’);<br />
function hello_world()<br />
{<br />
return get_option(‘hello_world_data’);<br />
}</p>
<p>note ‘return’ instead of ‘echo’</p>
<p>And then in your template file such as page.php or single.php try this –</p>
<p>Note the added ‘echo’</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LKM</title>
		<link>http://corpocrat.com/2009/12/27/tutorial-how-to-write-a-wordpress-plugin/#comment-23707</link>
		<dc:creator>LKM</dc:creator>
		<pubDate>Fri, 03 Feb 2012 10:54:16 +0000</pubDate>
		<guid isPermaLink="false">http://corpocrat.com/?p=904#comment-23707</guid>
		<description>Try in hello-world.php - 
add_action(&#039;init&#039;,&#039;hello_world&#039;);
function hello_world()
{
return get_option(&#039;hello_world_data&#039;);
}

note &#039;return&#039; instead of &#039;echo&#039;

And then in your template file such as page.php or single.php try this - 



Note the added &#039;echo&#039;</description>
		<content:encoded><![CDATA[<p>Try in hello-world.php &#8211;<br />
add_action(&#8216;init&#8217;,'hello_world&#8217;);<br />
function hello_world()<br />
{<br />
return get_option(&#8216;hello_world_data&#8217;);<br />
}</p>
<p>note &#8216;return&#8217; instead of &#8216;echo&#8217;</p>
<p>And then in your template file such as page.php or single.php try this &#8211; </p>
<p>Note the added &#8216;echo&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LKM</title>
		<link>http://corpocrat.com/2009/12/27/tutorial-how-to-write-a-wordpress-plugin/#comment-23706</link>
		<dc:creator>LKM</dc:creator>
		<pubDate>Fri, 03 Feb 2012 10:49:59 +0000</pubDate>
		<guid isPermaLink="false">http://corpocrat.com/?p=904#comment-23706</guid>
		<description>It doesn&#039;t create a new table.
Check in wp_options, you&#039;ll see a new row with the &#039;option_name&#039; field populated with a value of &#039;hello_world_data&#039; and the &#039;option_value&#039; field of the table is populated with what ever you enter into wp-admin &gt; settings &gt; Hello World</description>
		<content:encoded><![CDATA[<p>It doesn&#8217;t create a new table.<br />
Check in wp_options, you&#8217;ll see a new row with the &#8216;option_name&#8217; field populated with a value of &#8216;hello_world_data&#8217; and the &#8216;option_value&#8217; field of the table is populated with what ever you enter into wp-admin &gt; settings &gt; Hello World</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sharif</title>
		<link>http://corpocrat.com/2009/12/27/tutorial-how-to-write-a-wordpress-plugin/#comment-23540</link>
		<dc:creator>Sharif</dc:creator>
		<pubDate>Sat, 14 Jan 2012 08:59:04 +0000</pubDate>
		<guid isPermaLink="false">http://corpocrat.com/?p=904#comment-23540</guid>
		<description>I solve that fully and here is the code.I think it may help you. the file is hello.php

hello.php file:




Hello World Options






Enter Text

&lt;input name=&quot;hello_world_data&quot; type=&quot;text&quot; id=&quot;hello_world_data&quot;
value=&quot;&quot; /&gt;
(ex. Hello World)







&lt;input type=&quot;submit&quot; value=&quot;&quot; /&gt;




</description>
		<content:encoded><![CDATA[<p>I solve that fully and here is the code.I think it may help you. the file is hello.php</p>
<p>hello.php file:</p>
<p>Hello World Options</p>
<p>Enter Text</p>
<p>&lt;input name=&quot;hello_world_data&quot; type=&quot;text&quot; id=&quot;hello_world_data&quot;<br />
value=&quot;&#8221; /&gt;<br />
(ex. Hello World)</p>
<p>&lt;input type=&quot;submit&quot; value=&quot;&#8221; /&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeyakumar</title>
		<link>http://corpocrat.com/2009/12/27/tutorial-how-to-write-a-wordpress-plugin/#comment-23508</link>
		<dc:creator>Jeyakumar</dc:creator>
		<pubDate>Wed, 11 Jan 2012 16:34:30 +0000</pubDate>
		<guid isPermaLink="false">http://corpocrat.com/?p=904#comment-23508</guid>
		<description>HI..
 
I have try to create a plugin. below is mycode
[code]
&lt;?php
/*
Plugin Name: Front End Image
Plugin URI: http://yourdomain.com/
Description: A simple hello world wordpress plugin
Version: 1.0
Author: rsjeyakumar
Author URI: http://yourdomain.com
License: GPL
*/


if(is_admin()){
add_action(&#039;admin_menu&#039;,&#039;front_end_image&#039;);

	function front_end_image(){
	add_options_page(&#039;Home Images&#039;,&#039;Home Image&#039;,&#039;administrator&#039;,&#039;home_image&#039;,&#039;add_home_image&#039;);
	
	
	}


}

function add_home_image(){
?&gt;
&lt;div class=&quot;wrap&quot;&gt;
&lt;div class=&quot;icon32&quot; id=&quot;icon-options-general&quot;&gt;&lt;br&gt;&lt;/div&gt;
&lt;h2&gt;Set Home page Title,Image,Description&lt;/h2&gt;
&lt;form method=&quot;post&quot; action=&quot;options.php&quot;&gt;
&lt;?php wp_nonce_field(&#039;update-options&#039;); ?&gt;
&lt;div&gt;
&lt;h3&gt;Buy Details&lt;/h3&gt;
&lt;table width=&quot;600&quot;&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Buy Title&lt;/th&gt;
&lt;td width=&quot;406&quot;&gt;
&lt;input name=&quot;buy_tilte&quot; type=&quot;text&quot; id=&quot;buy_tilte&quot;
value=&quot;&lt;?php echo get_option(&#039;buy_tilte&#039;); ?&gt;&quot; /&gt;
(ex. Hello World)&lt;/td&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Page Url&lt;/th&gt;
&lt;td width=&quot;406&quot;&gt;
&lt;input name=&quot;buy_tilte_url&quot; type=&quot;text&quot; id=&quot;buy_tilte_url&quot;
value=&quot;&lt;?php echo get_option(&#039;buy_tilte_url&#039;); ?&gt;&quot; /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Image Url&lt;/th&gt;
&lt;td width=&quot;600&quot;&gt;
&lt;input name=&quot;buy_image_url&quot; type=&quot;text&quot; id=&quot;buy_image_url&quot;
value=&quot;&lt;?php echo get_option(&#039;buy_image_url&#039;); ?&gt;&quot; /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;&lt;!--end of buy --&gt;
&lt;div&gt;
&lt;h3&gt;Sell Details&lt;/h3&gt;
&lt;table width=&quot;600&quot;&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Sell Title&lt;/th&gt;
&lt;td width=&quot;406&quot;&gt;
&lt;input name=&quot;sell_tilte&quot; type=&quot;text&quot; id=&quot;sell_tilte&quot;
value=&quot;&lt;?php echo get_option(&#039;sell_tilte&#039;); ?&gt;&quot; /&gt;
(ex. Hello World)&lt;/td&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Page Url&lt;/th&gt;
&lt;td width=&quot;406&quot;&gt;
&lt;input name=&quot;sell_tilte_url&quot; type=&quot;text&quot; id=&quot;sell_tilte_url&quot;
value=&quot;&lt;?php echo get_option(&#039;sell_tilte_url&#039;); ?&gt;&quot; /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Image Url&lt;/th&gt;
&lt;td width=&quot;600&quot;&gt;
&lt;input name=&quot;sell_image_url&quot; type=&quot;text&quot; id=&quot;sell_image_url&quot;
value=&quot;&lt;?php echo get_option(&#039;buy_image_url&#039;); ?&gt;&quot; /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;

&lt;div&gt;
&lt;h3&gt;Share Details&lt;/h3&gt;
&lt;table width=&quot;600&quot;&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Share Title&lt;/th&gt;
&lt;td width=&quot;406&quot;&gt;
&lt;input name=&quot;share_tilte&quot; type=&quot;text&quot; id=&quot;share_tilte&quot;
value=&quot;&lt;?php echo get_option(&#039;share_tilte&#039;); ?&gt;&quot; /&gt;
(ex. Hello World)&lt;/td&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Page Url&lt;/th&gt;
&lt;td width=&quot;406&quot;&gt;
&lt;input name=&quot;share_tilte_url&quot; type=&quot;text&quot; id=&quot;share_tilte_url&quot;
value=&quot;&lt;?php echo get_option(&#039;share_tilte_url&#039;); ?&gt;&quot; /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Image Url&lt;/th&gt;
&lt;td width=&quot;600&quot;&gt;
&lt;input name=&quot;share_image_url&quot; type=&quot;text&quot; id=&quot;share_image_url&quot;
value=&quot;&lt;?php echo get_option(&#039;share_image_url&#039;); ?&gt;&quot; /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;

&lt;div&gt;
&lt;h3&gt;Enjoy Details&lt;/h3&gt;
&lt;table width=&quot;600&quot;&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Enjoy Title&lt;/th&gt;
&lt;td width=&quot;406&quot;&gt;
&lt;input name=&quot;enjoy_tilte&quot; type=&quot;text&quot; id=&quot;enjoy_tilte&quot;
value=&quot;&lt;?php echo get_option(&#039;enjoy_tilte&#039;); ?&gt;&quot; /&gt;
(ex. Hello World)&lt;/td&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Page Url&lt;/th&gt;
&lt;td width=&quot;406&quot;&gt;
&lt;input name=&quot;enjoy_tilte_url&quot; type=&quot;text&quot; id=&quot;enjoy_tilte_url&quot;
value=&quot;&lt;?php echo get_option(&#039;enjoy_tilte_url&#039;); ?&gt;&quot; /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Image Url&lt;/th&gt;
&lt;td width=&quot;600&quot;&gt;
&lt;input name=&quot;enjoy_image_url&quot; type=&quot;text&quot; id=&quot;enjoy_image_url&quot;
value=&quot;&lt;?php echo get_option(&#039;enjoy_image_url&#039;); ?&gt;&quot; /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;


&lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;update&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;buy_tilte&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;buy_tilte_url&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;buy_image_url&quot; /&gt;

&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;sell_tilte&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;sell_tilte_url&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;sell_image_url&quot; /&gt;

&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;share_tilte&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;share_tilte_url&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;share_image_url&quot; /&gt;

&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;enjoy_tilte&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;enjoy_tilte_url&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;enjoy_image_url&quot; /&gt;

&lt;p&gt;
&lt;input type=&quot;submit&quot; value=&quot;&lt;?php _e(&#039;Save Changes&#039;) ?&gt;&quot; /&gt;
&lt;/p&gt;
&lt;/form&gt;

&lt;/div&gt;&lt;!--end of wrap class--&gt;
&lt;?php } //end of add_home_image funciton

?&gt;[/code]





The above code not updated all values in database.. only  one value has updated.. 


How will i do.. and how to call this value in theme(front end).. kindly response as soon as possible</description>
		<content:encoded><![CDATA[<p>HI..</p>
<p>I have try to create a plugin. below is mycode</p>
<pre class="brush: plain; title: CODE; notranslate">
&lt;?php
/*
Plugin Name: Front End Image
Plugin URI: <a href="http://yourdomain.com/" rel="nofollow">http://yourdomain.com/</a>
Description: A simple hello world wordpress plugin
Version: 1.0
Author: rsjeyakumar
Author URI: <a href="http://yourdomain.com" rel="nofollow">http://yourdomain.com</a>
License: GPL
*/

if(is_admin()){
add_action('admin_menu','front_end_image');

	function front_end_image(){
	add_options_page('Home Images','Home Image','administrator','home_image','add_home_image');

	}

}

function add_home_image(){
?&gt;
&lt;div class=&quot;wrap&quot;&gt;
&lt;div class=&quot;icon32&quot; id=&quot;icon-options-general&quot;&gt;&lt;br&gt;&lt;/div&gt;
&lt;h2&gt;Set Home page Title,Image,Description&lt;/h2&gt;
&lt;form method=&quot;post&quot; action=&quot;options.php&quot;&gt;
&lt;?php wp_nonce_field('update-options'); ?&gt;
&lt;div&gt;
&lt;h3&gt;Buy Details&lt;/h3&gt;
&lt;table width=&quot;600&quot;&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Buy Title&lt;/th&gt;
&lt;td width=&quot;406&quot;&gt;
&lt;input name=&quot;buy_tilte&quot; type=&quot;text&quot; id=&quot;buy_tilte&quot;
value=&quot;&lt;?php echo get_option('buy_tilte'); ?&gt;&quot; /&gt;
(ex. Hello World)&lt;/td&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Page Url&lt;/th&gt;
&lt;td width=&quot;406&quot;&gt;
&lt;input name=&quot;buy_tilte_url&quot; type=&quot;text&quot; id=&quot;buy_tilte_url&quot;
value=&quot;&lt;?php echo get_option('buy_tilte_url'); ?&gt;&quot; /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Image Url&lt;/th&gt;
&lt;td width=&quot;600&quot;&gt;
&lt;input name=&quot;buy_image_url&quot; type=&quot;text&quot; id=&quot;buy_image_url&quot;
value=&quot;&lt;?php echo get_option('buy_image_url'); ?&gt;&quot; /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;&lt;!--end of buy --&gt;
&lt;div&gt;
&lt;h3&gt;Sell Details&lt;/h3&gt;
&lt;table width=&quot;600&quot;&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Sell Title&lt;/th&gt;
&lt;td width=&quot;406&quot;&gt;
&lt;input name=&quot;sell_tilte&quot; type=&quot;text&quot; id=&quot;sell_tilte&quot;
value=&quot;&lt;?php echo get_option('sell_tilte'); ?&gt;&quot; /&gt;
(ex. Hello World)&lt;/td&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Page Url&lt;/th&gt;
&lt;td width=&quot;406&quot;&gt;
&lt;input name=&quot;sell_tilte_url&quot; type=&quot;text&quot; id=&quot;sell_tilte_url&quot;
value=&quot;&lt;?php echo get_option('sell_tilte_url'); ?&gt;&quot; /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Image Url&lt;/th&gt;
&lt;td width=&quot;600&quot;&gt;
&lt;input name=&quot;sell_image_url&quot; type=&quot;text&quot; id=&quot;sell_image_url&quot;
value=&quot;&lt;?php echo get_option('buy_image_url'); ?&gt;&quot; /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;

&lt;div&gt;
&lt;h3&gt;Share Details&lt;/h3&gt;
&lt;table width=&quot;600&quot;&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Share Title&lt;/th&gt;
&lt;td width=&quot;406&quot;&gt;
&lt;input name=&quot;share_tilte&quot; type=&quot;text&quot; id=&quot;share_tilte&quot;
value=&quot;&lt;?php echo get_option('share_tilte'); ?&gt;&quot; /&gt;
(ex. Hello World)&lt;/td&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Page Url&lt;/th&gt;
&lt;td width=&quot;406&quot;&gt;
&lt;input name=&quot;share_tilte_url&quot; type=&quot;text&quot; id=&quot;share_tilte_url&quot;
value=&quot;&lt;?php echo get_option('share_tilte_url'); ?&gt;&quot; /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Image Url&lt;/th&gt;
&lt;td width=&quot;600&quot;&gt;
&lt;input name=&quot;share_image_url&quot; type=&quot;text&quot; id=&quot;share_image_url&quot;
value=&quot;&lt;?php echo get_option('share_image_url'); ?&gt;&quot; /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;

&lt;div&gt;
&lt;h3&gt;Enjoy Details&lt;/h3&gt;
&lt;table width=&quot;600&quot;&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Enjoy Title&lt;/th&gt;
&lt;td width=&quot;406&quot;&gt;
&lt;input name=&quot;enjoy_tilte&quot; type=&quot;text&quot; id=&quot;enjoy_tilte&quot;
value=&quot;&lt;?php echo get_option('enjoy_tilte'); ?&gt;&quot; /&gt;
(ex. Hello World)&lt;/td&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Page Url&lt;/th&gt;
&lt;td width=&quot;406&quot;&gt;
&lt;input name=&quot;enjoy_tilte_url&quot; type=&quot;text&quot; id=&quot;enjoy_tilte_url&quot;
value=&quot;&lt;?php echo get_option('enjoy_tilte_url'); ?&gt;&quot; /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th width=&quot;150&quot; scope=&quot;row&quot;&gt;Image Url&lt;/th&gt;
&lt;td width=&quot;600&quot;&gt;
&lt;input name=&quot;enjoy_image_url&quot; type=&quot;text&quot; id=&quot;enjoy_image_url&quot;
value=&quot;&lt;?php echo get_option('enjoy_image_url'); ?&gt;&quot; /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;

&lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;update&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;buy_tilte&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;buy_tilte_url&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;buy_image_url&quot; /&gt;

&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;sell_tilte&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;sell_tilte_url&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;sell_image_url&quot; /&gt;

&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;share_tilte&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;share_tilte_url&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;share_image_url&quot; /&gt;

&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;enjoy_tilte&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;enjoy_tilte_url&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;page_options&quot; value=&quot;enjoy_image_url&quot; /&gt;

&lt;p&gt;
&lt;input type=&quot;submit&quot; value=&quot;&lt;?php _e('Save Changes') ?&gt;&quot; /&gt;
&lt;/p&gt;
&lt;/form&gt;

&lt;/div&gt;&lt;!--end of wrap class--&gt;
&lt;?php } //end of add_home_image funciton

?&gt;</pre>
<p>The above code not updated all values in database.. only  one value has updated.. </p>
<p>How will i do.. and how to call this value in theme(front end).. kindly response as soon as possible</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeyakumar</title>
		<link>http://corpocrat.com/2009/12/27/tutorial-how-to-write-a-wordpress-plugin/#comment-23507</link>
		<dc:creator>Jeyakumar</dc:creator>
		<pubDate>Wed, 11 Jan 2012 16:33:39 +0000</pubDate>
		<guid isPermaLink="false">http://corpocrat.com/?p=904#comment-23507</guid>
		<description>HI..
 
I have try to create a plugin. below is mycode




Set Home page Title,Image,Description



Buy Details


Buy Title

&lt;input name=&quot;buy_tilte&quot; type=&quot;text&quot; id=&quot;buy_tilte&quot;
value=&quot;&quot; /&gt;
(ex. Hello World)
Page Url

&lt;input name=&quot;buy_tilte_url&quot; type=&quot;text&quot; id=&quot;buy_tilte_url&quot;
value=&quot;&quot; /&gt;



Image Url

&lt;input name=&quot;buy_image_url&quot; type=&quot;text&quot; id=&quot;buy_image_url&quot;
value=&quot;&quot; /&gt;



&lt;!--end of buy --&gt;

Sell Details


Sell Title

&lt;input name=&quot;sell_tilte&quot; type=&quot;text&quot; id=&quot;sell_tilte&quot;
value=&quot;&quot; /&gt;
(ex. Hello World)
Page Url

&lt;input name=&quot;sell_tilte_url&quot; type=&quot;text&quot; id=&quot;sell_tilte_url&quot;
value=&quot;&quot; /&gt;



Image Url

&lt;input name=&quot;sell_image_url&quot; type=&quot;text&quot; id=&quot;sell_image_url&quot;
value=&quot;&quot; /&gt;






Share Details


Share Title

&lt;input name=&quot;share_tilte&quot; type=&quot;text&quot; id=&quot;share_tilte&quot;
value=&quot;&quot; /&gt;
(ex. Hello World)
Page Url

&lt;input name=&quot;share_tilte_url&quot; type=&quot;text&quot; id=&quot;share_tilte_url&quot;
value=&quot;&quot; /&gt;



Image Url

&lt;input name=&quot;share_image_url&quot; type=&quot;text&quot; id=&quot;share_image_url&quot;
value=&quot;&quot; /&gt;






Enjoy Details


Enjoy Title

&lt;input name=&quot;enjoy_tilte&quot; type=&quot;text&quot; id=&quot;enjoy_tilte&quot;
value=&quot;&quot; /&gt;
(ex. Hello World)
Page Url

&lt;input name=&quot;enjoy_tilte_url&quot; type=&quot;text&quot; id=&quot;enjoy_tilte_url&quot;
value=&quot;&quot; /&gt;



Image Url

&lt;input name=&quot;enjoy_image_url&quot; type=&quot;text&quot; id=&quot;enjoy_image_url&quot;
value=&quot;&quot; /&gt;
























&lt;input type=&quot;submit&quot; value=&quot;&quot; /&gt;



&lt;!--end of wrap class--&gt;






The above code not updated all values in database.. only  one value has updated.. 


How will i do.. and how to call this value in theme(front end).. kindly response as soon as possible</description>
		<content:encoded><![CDATA[<p>HI..</p>
<p>I have try to create a plugin. below is mycode</p>
<p>Set Home page Title,Image,Description</p>
<p>Buy Details</p>
<p>Buy Title</p>
<p>&lt;input name=&quot;buy_tilte&quot; type=&quot;text&quot; id=&quot;buy_tilte&quot;<br />
value=&quot;&#8221; /&gt;<br />
(ex. Hello World)<br />
Page Url</p>
<p>&lt;input name=&quot;buy_tilte_url&quot; type=&quot;text&quot; id=&quot;buy_tilte_url&quot;<br />
value=&quot;&#8221; /&gt;</p>
<p>Image Url</p>
<p>&lt;input name=&quot;buy_image_url&quot; type=&quot;text&quot; id=&quot;buy_image_url&quot;<br />
value=&quot;&#8221; /&gt;</p>
<p><!--end of buy --></p>
<p>Sell Details</p>
<p>Sell Title</p>
<p>&lt;input name=&quot;sell_tilte&quot; type=&quot;text&quot; id=&quot;sell_tilte&quot;<br />
value=&quot;&#8221; /&gt;<br />
(ex. Hello World)<br />
Page Url</p>
<p>&lt;input name=&quot;sell_tilte_url&quot; type=&quot;text&quot; id=&quot;sell_tilte_url&quot;<br />
value=&quot;&#8221; /&gt;</p>
<p>Image Url</p>
<p>&lt;input name=&quot;sell_image_url&quot; type=&quot;text&quot; id=&quot;sell_image_url&quot;<br />
value=&quot;&#8221; /&gt;</p>
<p>Share Details</p>
<p>Share Title</p>
<p>&lt;input name=&quot;share_tilte&quot; type=&quot;text&quot; id=&quot;share_tilte&quot;<br />
value=&quot;&#8221; /&gt;<br />
(ex. Hello World)<br />
Page Url</p>
<p>&lt;input name=&quot;share_tilte_url&quot; type=&quot;text&quot; id=&quot;share_tilte_url&quot;<br />
value=&quot;&#8221; /&gt;</p>
<p>Image Url</p>
<p>&lt;input name=&quot;share_image_url&quot; type=&quot;text&quot; id=&quot;share_image_url&quot;<br />
value=&quot;&#8221; /&gt;</p>
<p>Enjoy Details</p>
<p>Enjoy Title</p>
<p>&lt;input name=&quot;enjoy_tilte&quot; type=&quot;text&quot; id=&quot;enjoy_tilte&quot;<br />
value=&quot;&#8221; /&gt;<br />
(ex. Hello World)<br />
Page Url</p>
<p>&lt;input name=&quot;enjoy_tilte_url&quot; type=&quot;text&quot; id=&quot;enjoy_tilte_url&quot;<br />
value=&quot;&#8221; /&gt;</p>
<p>Image Url</p>
<p>&lt;input name=&quot;enjoy_image_url&quot; type=&quot;text&quot; id=&quot;enjoy_image_url&quot;<br />
value=&quot;&#8221; /&gt;</p>
<p>&lt;input type=&quot;submit&quot; value=&quot;&#8221; /&gt;</p>
<p><!--end of wrap class--></p>
<p>The above code not updated all values in database.. only  one value has updated.. </p>
<p>How will i do.. and how to call this value in theme(front end).. kindly response as soon as possible</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fawwad Khan</title>
		<link>http://corpocrat.com/2009/12/27/tutorial-how-to-write-a-wordpress-plugin/#comment-23365</link>
		<dc:creator>Fawwad Khan</dc:creator>
		<pubDate>Fri, 30 Dec 2011 13:35:21 +0000</pubDate>
		<guid isPermaLink="false">http://corpocrat.com/?p=904#comment-23365</guid>
		<description>It is very wonderfull tutorial for those who are in first stage.

Thanks,
Fawwad Ali Khan
Web Developer</description>
		<content:encoded><![CDATA[<p>It is very wonderfull tutorial for those who are in first stage.</p>
<p>Thanks,<br />
Fawwad Ali Khan<br />
Web Developer</p>
]]></content:encoded>
	</item>
</channel>
</rss>

