<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rtCamp</title>
	<atom:link href="http://rtcamp.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rtcamp.com</link>
	<description>Empowering the web with WordPress!</description>
	<lastBuildDate>Thu, 17 May 2012 05:52:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Assign Custom Metabox To Specific Page Template</title>
		<link>http://rtcamp.com/blog/assign-custom-metabox-specific-page-template/</link>
		<comments>http://rtcamp.com/blog/assign-custom-metabox-specific-page-template/#comments</comments>
		<pubDate>Wed, 18 Apr 2012 11:57:57 +0000</pubDate>
		<dc:creator>Apeksha</dc:creator>
				<category><![CDATA[rtPanel]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://rtpanel.com/?p=2360</guid>
		<description><![CDATA[<p>Custom meta-boxes allows you to add piece of custom data to posts or pages. In one of our previous post we have seen about how easy it is to deploy custom metabox using rtPanel Child Theme. The rtp-custom-metaboxes.php present in the rtPanel Child Theme has the basic function that is required to deploy the meta box in the [...]</p><p><a href="http://rtcamp.com/blog/assign-custom-metabox-specific-page-template/">Assign Custom Metabox To Specific Page Template</a> is a post from <a href="http://rtcamp.com">rtCamp</a></p>
Related Posts:<ol>
<li><a href='http://rtcamp.com/blog/creating-custom-page-templates-rtpanel-child-theme/' rel='bookmark' title='Creating custom page templates in rtPanel child theme'>Creating custom page templates in rtPanel child theme</a></li>
<li><a href='http://rtcamp.com/blog/creating-metabox/' rel='bookmark' title='Create Metabox on rtPanel Child Theme'>Create Metabox on rtPanel Child Theme</a></li>
<li><a href='http://rtcamp.com/blog/custompost-rtpanel-child-theme/' rel='bookmark' title='Create Custom Post Type with rtPanel Child Theme'>Create Custom Post Type with rtPanel Child Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Custom meta-boxes allows you to add piece of custom data to posts or pages. In one of our <a title="Creating Metabox" href="http://rtcamp.com/blog/creating-metabox/">previous post</a> we have seen about how easy it is to deploy custom metabox using rtPanel Child Theme. The <strong>rtp-custom-metaboxes.php </strong>present in the rtPanel Child Theme has the basic function that is required to deploy the meta box in the site.</p>
<p>The meta box can be implemented in the  post/ page editor of specific page template at the WordPress back-end.</p>
<p>Example: Refer the below screenshot, which contains certain page sections which are displayed from MetaBoxes.</p>
<p><a href="http://rtcamp.com/files/2012/04/metaboxes.png"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full  wp-image-5041" src="http://rtcamp.com/files/2012/04/metaboxes.png" alt="" width="760" height="558" /></a></p>
<p>In above screenshot you can notice that  on Home page template, different page sections like &#8216;Slogan&#8217; and &#8216;content boxes&#8217; are displayed using custom metaboxes functionality. These are manged from page editors at WordPress back end.  Please refer the below screenshot to see the back-end:</p>
<p><a href="http://rtcamp.com/files/2012/04/metaboxes_backend.png"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-large wp-image-2421" src="http://rtcamp.com/files/2012/04/metaboxes_backend-600x386.png" alt="" width="600" height="386" /></a></p>
<h3> Assigning Metaboxes to the page templates:</h3>
<p><strong>Step 1:</strong> Create a page template (For details refer <a rel="nofollow" href="http://rtpanel.com/blog/creating-custom-page-templates-rtpanel-child-theme/" target="_blank">this</a> ).</p>
<p><strong>Step 2:</strong> Replace code present in the rtp_post_types_custom_box() with the following one  :</p>
<pre>global $post;
 $template_file = get_post_meta( $post-&gt;ID, '_wp_page_template', TRUE );
 if ( $template_file == 'featured-template.php' ) {
 add_meta_box ( 'post_custom_field_id', __( 'Custom Field', 'rtPanel' ), 'rtp_posts_inner_custom_box', 'page', 'side', 'high' );
 }</pre>
<p>Here in above code, meta boxes are linked to &#8220;featured-template.php&#8221;. You can replace the template name with the one you have created for which  meta box will be displayed.</p>
<p>This is useful when we are applying the meta box value only to one page or to page having some specific page template.</p>
<p>For any questions about using metboxes in rtPanel, please contact on our <a title="Support Forum" href="http://rtcamp.com/support/forum/rtpanel/forum/developer/">Support Forums</a>.</p>
<p>Related Posts:<ol>
<li><a href='http://rtcamp.com/blog/creating-custom-page-templates-rtpanel-child-theme/' rel='bookmark' title='Creating custom page templates in rtPanel child theme'>Creating custom page templates in rtPanel child theme</a></li>
<li><a href='http://rtcamp.com/blog/creating-metabox/' rel='bookmark' title='Create Metabox on rtPanel Child Theme'>Create Metabox on rtPanel Child Theme</a></li>
<li><a href='http://rtcamp.com/blog/custompost-rtpanel-child-theme/' rel='bookmark' title='Create Custom Post Type with rtPanel Child Theme'>Create Custom Post Type with rtPanel Child Theme</a></li>
</ol></p><p><a href="http://rtcamp.com/blog/assign-custom-metabox-specific-page-template/">Assign Custom Metabox To Specific Page Template</a> is a post from <a href="http://rtcamp.com">rtCamp</a></p>]]></content:encoded>
			<wfw:commentRss>http://rtcamp.com/blog/assign-custom-metabox-specific-page-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create Custom Theme Options To Add Header Image</title>
		<link>http://rtcamp.com/blog/adding-images-header-custom-theme-options/</link>
		<comments>http://rtcamp.com/blog/adding-images-header-custom-theme-options/#comments</comments>
		<pubDate>Mon, 09 Apr 2012 14:07:11 +0000</pubDate>
		<dc:creator>Apeksha</dc:creator>
				<category><![CDATA[rtPanel]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://rtpanel.com/?p=2111</guid>
		<description><![CDATA[<p>Many times, client demands to have a control over the website look and hence the they want the header image to be managed with easy option. The best way to do that is to provide a theme option to manage the header image. Have a look at below screenshot for the sample. Adding Image to [...]</p><p><a href="http://rtcamp.com/blog/adding-images-header-custom-theme-options/">Create Custom Theme Options To Add Header Image</a> is a post from <a href="http://rtcamp.com">rtCamp</a></p>
Related Posts:<ol>
<li><a href='http://rtcamp.com/blog/custom-theme-options-rtpanel-child-theme/' rel='bookmark' title='Custom Theme Options in rtPanel Child Theme'>Custom Theme Options in rtPanel Child Theme</a></li>
<li><a href='http://rtcamp.com/blog/custompost-rtpanel-child-theme/' rel='bookmark' title='Create Custom Post Type with rtPanel Child Theme'>Create Custom Post Type with rtPanel Child Theme</a></li>
<li><a href='http://rtcamp.com/blog/creating-clickable-header-image-child-theme/' rel='bookmark' title='Clickable header in rtPanel child theme'>Clickable header in rtPanel child theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Many times, client demands to have a control over the website look and hence the they want the header image to be managed with easy option. The best way to do that is to provide a theme option to manage the header image. Have a look at below screenshot for the sample. <a href="http://rtcamp.com/files/2012/04/HeaderImage_custom-theme-options.png"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full  wp-image-5044" src="http://rtcamp.com/files/2012/04/HeaderImage_custom-theme-options.png" alt="" width="609" height="561" /></a></p>
<h3></h3>
<h3>Adding Image to Header From Custom Theme Options:</h3>
<p>rtPanel is pre-equipped with all the basic functionality required. Creating a theme option to add images to header is very simple and it can be achieved with three easy steps as below:</p>
<h4>1. Get code from rtp-custom-theme-options.php:</h4>
<p>rtPanel child theme contains pre-defined theme option file as &#8216;rtp-custom-theme-options.php&#8217; in lib folder of child theme. You can see the codes on Github <a title="rtPanel Child theme" rel="nofollow" href="https://github.com/rtCamp/rtpanel-child-theme">here</a>.  It has “Image Uploader” field by default so we don&#8217;t have to write extra codes in this page.</p>
<h4>2. Create Function at functions.php:</h4>
<p>All we need to do is to create a function in functions.php file and then add the code to display image from rtp-custom-theme-options.php file in that function. The function with code will look as below:</p>
<pre>&lt;?php function rtp_display_img(){
 global $rtp_custom_theme_options;&lt;?php $custom_image_uploader = wp_get_attachment_image_src( @$rtp_custom_theme_options['custom_image_id'], 'thumbnail' ); ?&gt;   &lt;img src="&lt;?php echo @$custom_image_uploader[0] ?&gt;" alt="Custom Image"&lt;?php echo ( isset( $custom_image_uploader[0] ) ?  'style="max-width: 240px; width: 100%;"' : 'style="max-width: 240px; width: 100%; display: none;"' ); ?&gt; /&gt; &lt;?php } ?&gt;</pre>
<p>This is how it looks at the backend in the admin area of Custom Theme Options page. <a href="http://rtcamp.com/blog/photos-rtparty2011-rtcamps-second-anniversary-celebration/" rel="attachment wp-att-2112"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-2112" src="http://rtcamp.com/files/2012/03/customthemeoptions3.jpg" alt="" width="968" height="269" /></a>The code has default styling for the image which is displayed. You can also add CSS style to the image in the desired way you would like to display it.</p>
<h4>3. Add Hook:</h4>
<p>Once we have created the function we have to hook it. As we have to display this image  after header we will use &#8216;rtp_hook_after_header&#8217;. For example,</p>
<pre>add_action('rtp_hook_after_header','rtp_display_img');</pre>
<p><strong>Note:</strong> <span style="line-height: 21px"> </span><span style="line-height: 21px">By default the image will be displayed above the menu as the </span>menu in the site uses same hook with the priority <strong>10</strong>. If you would like to display the image below the menu then you have to set the priority more than 10. For Example,</p>
<pre>add_action('rtp_hook_after_header','rtp_display_img',12);</pre>
<p>I hope above tutorial was helpful. You may ask your questions below as comments or on our <a title="Support Forum" href="http://rtcamp.com/support/forum/rtpanel/forum/developer/">support forums</a>.</p>
<p>Related Posts:<ol>
<li><a href='http://rtcamp.com/blog/custom-theme-options-rtpanel-child-theme/' rel='bookmark' title='Custom Theme Options in rtPanel Child Theme'>Custom Theme Options in rtPanel Child Theme</a></li>
<li><a href='http://rtcamp.com/blog/custompost-rtpanel-child-theme/' rel='bookmark' title='Create Custom Post Type with rtPanel Child Theme'>Create Custom Post Type with rtPanel Child Theme</a></li>
<li><a href='http://rtcamp.com/blog/creating-clickable-header-image-child-theme/' rel='bookmark' title='Clickable header in rtPanel child theme'>Clickable header in rtPanel child theme</a></li>
</ol></p><p><a href="http://rtcamp.com/blog/adding-images-header-custom-theme-options/">Create Custom Theme Options To Add Header Image</a> is a post from <a href="http://rtcamp.com">rtCamp</a></p>]]></content:encoded>
			<wfw:commentRss>http://rtcamp.com/blog/adding-images-header-custom-theme-options/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Customizing Image Sliders in rtPanel Child Theme</title>
		<link>http://rtcamp.com/blog/presenting-rtpslider/</link>
		<comments>http://rtcamp.com/blog/presenting-rtpslider/#comments</comments>
		<pubDate>Wed, 04 Apr 2012 14:14:50 +0000</pubDate>
		<dc:creator>Apeksha</dc:creator>
				<category><![CDATA[rtPanel]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://rtpanel.com/?p=2243</guid>
		<description><![CDATA[<p>The image slider enhances the beauty of the website. The image slider can be used to showcase the product or to display the portfolio or featured blog posts. In the earlier post we have seen how easy it is, to add the slider in your website using rtPanel child theme. By default this slider will display [...]</p><p><a href="http://rtcamp.com/blog/presenting-rtpslider/">Customizing Image Sliders in rtPanel Child Theme</a> is a post from <a href="http://rtcamp.com">rtCamp</a></p>
Related Posts:<ol>
<li><a href='http://rtcamp.com/blog/case-study-scenecreek/' rel='bookmark' title='Case Study: rtPanel Child Theme &#8216;SceneCreek&#8217;'>Case Study: rtPanel Child Theme &#8216;SceneCreek&#8217;</a></li>
<li><a href='http://rtcamp.com/blog/custompost-rtpanel-child-theme/' rel='bookmark' title='Create Custom Post Type with rtPanel Child Theme'>Create Custom Post Type with rtPanel Child Theme</a></li>
<li><a href='http://rtcamp.com/blog/creating-metabox/' rel='bookmark' title='Create Metabox on rtPanel Child Theme'>Create Metabox on rtPanel Child Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The image slider enhances the beauty of the website. The image slider can be used to showcase the product or to display the portfolio or featured blog posts.</p>
<p><span style="line-height: 21px">In the earlier </span><a href="http://rtcamp.com/blog/implementing-rtpslider-child-theme/" target="_blank">post</a> <span style="line-height: 21px">we have seen how easy it is, to add the slider in your website using rtPanel child theme. By default this slider will display latest 10 posts&#8217; featured image with its post title and the excerpt. </span><span style="line-height: 21px">Through this post we will show few more examples about how the slider can be presented in different ways:</span></p>
<h3>1. Displaying only images:</h3>
<p>By default the slider displays latest 10 posts featured image with its post title and the excerpt. If you would like to display only images on the post then you need to comment the following line in the code:</p>
<pre>  $slider_html .= '&lt;h1&gt;&lt;a href="' . get_permalink() .'" title="'.  get_the_title().'" rel="bookmark" &gt;' . ( ( strlen( get_the_title() ) &gt; 50 ) ? substr( get_the_title(), 0, 50 ) . "..." : get_the_title() ) . '&lt;/a&gt;&lt;/h1&gt;' .'&lt;h6&gt;'. get_the_excerpt().'&lt;/h6&gt;';</pre>
<h3>2. Displaying the images from the posts of specific categories:</h3>
<p>In many of our projects we have displayed slider where the post belonged to specific category.  For example, posts having &#8216;Slider&#8217; category will only be displayed on the slider.  To display such post in the slider you just need to add the category name in the the<strong><em> rtp-slideshow.php </em></strong><span style="line-height: 21px">F</span>or example, if you want to display the posts of &#8216;Slider&#8217; category on the slider then you just need to add <strong> &#8217;category_name&#8217; =&gt;&#8217;slider&#8217;</strong> in below code</p>
<pre> query_posts( array( 'ignore_sticky_posts' =&gt; 1, 'posts_per_page' =&gt; 10, 'order' =&gt; 'DESC') );</pre>
<p>Thus the code will be as below:</p>
<pre> query_posts( array( 'ignore_sticky_posts' =&gt; 1, 'posts_per_page' =&gt; 10, 'order' =&gt; 'DESC', 'category_name' =&gt;'slider') );</pre>
<h3>3. Displaying the image from the page attachment:</h3>
<p>The images which are attached to the page can be displayed in the slider. That is, each page will display its page attachment in the Slider.  For this you have to replace the code in the rtp_get_cycle_slider() function with below code:</p>
<pre>global $post;
 $images = &amp; get_children( array( 'post_type' =&gt; 'attachment', 'post_mime_type' =&gt; 'image', 'order' =&gt; 'ASC', 'post_parent' =&gt; $post-&gt;ID, 'numberposts' =&gt; 20 ) );
 $slider_html = '';
 if ( count( $images ) &gt; 1 ) {
 $slider_html .= '&lt;div class="clear"&gt;&lt;/div&gt;&lt;div id="rtp-cycle-slider"&gt;&lt;div class="rtp-cycle-slider-container"&gt;';
 foreach ( $images as $image ) {
 $slider_html .= '&lt;div class="cycle-slides"&gt;' . wp_get_attachment_image( $image-&gt;ID, 'rtp-slider' ) . '&lt;/div&gt;';
 }
 $slider_html .= '&lt;/div&gt;';
 }
 echo $slider_html;</pre>
<p><strong>Note:</strong> The slider will be <span style="line-height: 21px">only</span><span style="line-height: 21px"> </span>display if there are minimum 2 images in the page attachment.</p>
<p>Thus using rtPanel child theme deploying the slider in the website becomes easy and presenting it in diffrent way is much easier. You can add your CSS styling to the class in the div tags to enhance the slider design. <img src='http://rtcamp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Related Posts:<ol>
<li><a href='http://rtcamp.com/blog/case-study-scenecreek/' rel='bookmark' title='Case Study: rtPanel Child Theme &#8216;SceneCreek&#8217;'>Case Study: rtPanel Child Theme &#8216;SceneCreek&#8217;</a></li>
<li><a href='http://rtcamp.com/blog/custompost-rtpanel-child-theme/' rel='bookmark' title='Create Custom Post Type with rtPanel Child Theme'>Create Custom Post Type with rtPanel Child Theme</a></li>
<li><a href='http://rtcamp.com/blog/creating-metabox/' rel='bookmark' title='Create Metabox on rtPanel Child Theme'>Create Metabox on rtPanel Child Theme</a></li>
</ol></p><p><a href="http://rtcamp.com/blog/presenting-rtpslider/">Customizing Image Sliders in rtPanel Child Theme</a> is a post from <a href="http://rtcamp.com">rtCamp</a></p>]]></content:encoded>
			<wfw:commentRss>http://rtcamp.com/blog/presenting-rtpslider/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display Image Signature Below Post Content</title>
		<link>http://rtcamp.com/blog/display-image-signature-below-post-content/</link>
		<comments>http://rtcamp.com/blog/display-image-signature-below-post-content/#comments</comments>
		<pubDate>Sat, 31 Mar 2012 11:29:34 +0000</pubDate>
		<dc:creator>Apeksha</dc:creator>
				<category><![CDATA[rtPanel]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://rtpanel.com/?p=2161</guid>
		<description><![CDATA[<p>In the previous post we have seen about few hooks in the rtPanel and also read that how can we use such hooks in our website. In this post we will see about one more hook i.e &#8220;rtp_hook_end_post_content&#8221; It is used to hook the function after the post content. For example, this hook can be [...]</p><p><a href="http://rtcamp.com/blog/display-image-signature-below-post-content/">Display Image Signature Below Post Content</a> is a post from <a href="http://rtcamp.com">rtCamp</a></p>
Related Posts:<ol>
<li><a href='http://rtcamp.com/blog/custompost-rtpanel-child-theme/' rel='bookmark' title='Create Custom Post Type with rtPanel Child Theme'>Create Custom Post Type with rtPanel Child Theme</a></li>
<li><a href='http://rtcamp.com/blog/add-google-adbanner-logo-rtpanel/' rel='bookmark' title='Add Google ad-banner above logo in rtPanel'>Add Google ad-banner above logo in rtPanel</a></li>
<li><a href='http://rtcamp.com/blog/creating-metabox/' rel='bookmark' title='Create Metabox on rtPanel Child Theme'>Create Metabox on rtPanel Child Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In the <a title="rtPanel Hooks" href="http://rtcamp.com/blog/hooks-rtpanel-child-theme/">previous post</a> we have seen about few hooks in the rtPanel and also read that how can we use such hooks in our website. In this post we will see about one more hook i.e &#8220;rtp_hook_end_post_content&#8221; It is used to hook the function after the post content. For example, this hook can be used to display the signature (image of the signature) after every post content.</p>
<h3>Example: Display custom signature image at end of post content on single posts.</h3>
<p><a href="http://rtcamp.com/files/2012/03/Signature_rtPanel.png"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="size-full  aligncenter wp-image-5047" src="http://rtcamp.com/files/2012/03/Signature_rtPanel.png" alt="rtPanel Hooks" width="472" height="638" /></a></p>
<p>So lets see step-by-step guide for its implementation.</p>
<p><strong>Step 1:</strong>  In the &#8220;functions.php&#8221; file, create a custom function and write the code to display the image. For example,</p>
<pre>function custom_hook_end_post() {
 echo '&lt;img src="http://localhost/wordpress/wp-content/uploads/2012/03/mylogo.jpg&gt;"&gt;';
}</pre>
<p>If you want to display the image from the custom uploader which is present in the Custom Theme Options you have to write the below code:</p>
<pre>function custom_hook_end_post() {
 global $rtp_custom_theme_options;
 $custom_image_uploader = wp_get_attachment_image_src( @$rtp_custom_theme_options['custom_image_id'], 'thumbnail' );
  echo '&lt;img src="'.@$custom_image_uploader[0].'"&gt;';
}</pre>
<p>This function will display the image after ever page/post content.</p>
<p><strong>Step 2:</strong> If you want to display the image only on particular page the you have to add some condition in the code, such as:</p>
<blockquote><p><strong> if( is_page() )  </strong>To display image only on page (not on the post page).</p>
<p><strong>if(is_single())</strong>  To display image only on page single post page.</p>
<p><strong>if(is_singular()) </strong>To display image on page and single post page.</p></blockquote>
<p>For example,</p>
<pre>function custom_hook_end_post() {
 global $rtp_custom_theme_options;
 $custom_image_uploader = wp_get_attachment_image_src( @$rtp_custom_theme_options['custom_image_id'], 'thumbnail' );
 if( is_page() )
 echo '&lt;img src="'.@$custom_image_uploader[0].'" class="rtp_after_post_img"&gt;';
}</pre>
<p><strong>Step 3:</strong> Once you have created the function you have to hook it using add action. For which you have to add the below:</p>
<pre>add_action( 'rtp_hook_end_post_content', 'custom_hook_end_post' );</pre>
<p>and you are done. After this the image will be displayed below the page/post content as given in above image.</p>
<p>There can be many other usage of &#8216;rtp_hook_end_post_content&#8217; hook, based on your creative approach. One more reference example can be using this hook to to display the social networking icons or  social networking plugins. <img src='http://rtcamp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Related Post: <a href="http://rtcamp.com/blog/hooks-rtpanel-child-theme/">Adding Google ad banner above logo in rtPanel child theme.</a></p>
<p>Related Posts:<ol>
<li><a href='http://rtcamp.com/blog/custompost-rtpanel-child-theme/' rel='bookmark' title='Create Custom Post Type with rtPanel Child Theme'>Create Custom Post Type with rtPanel Child Theme</a></li>
<li><a href='http://rtcamp.com/blog/add-google-adbanner-logo-rtpanel/' rel='bookmark' title='Add Google ad-banner above logo in rtPanel'>Add Google ad-banner above logo in rtPanel</a></li>
<li><a href='http://rtcamp.com/blog/creating-metabox/' rel='bookmark' title='Create Metabox on rtPanel Child Theme'>Create Metabox on rtPanel Child Theme</a></li>
</ol></p><p><a href="http://rtcamp.com/blog/display-image-signature-below-post-content/">Display Image Signature Below Post Content</a> is a post from <a href="http://rtcamp.com">rtCamp</a></p>]]></content:encoded>
			<wfw:commentRss>http://rtcamp.com/blog/display-image-signature-below-post-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Google ad-banner above logo in rtPanel</title>
		<link>http://rtcamp.com/blog/add-google-adbanner-logo-rtpanel/</link>
		<comments>http://rtcamp.com/blog/add-google-adbanner-logo-rtpanel/#comments</comments>
		<pubDate>Fri, 30 Mar 2012 10:14:47 +0000</pubDate>
		<dc:creator>Gajanan Sapate</dc:creator>
				<category><![CDATA[rtPanel]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://rtpanel.com/?p=2303</guid>
		<description><![CDATA[<p>In previous post, we have seen the rtPanel Hooks map. Now lets see how we can we use &#8216;rtPanel Hooks&#8217; to add extra functionality while developing theme. Example &#8211; Adding Google-ad banner to rtPanel Child Theme  above logo: Step 1: At first we will create a custom field (textarea) in the custom theme option. So [...]</p><p><a href="http://rtcamp.com/blog/add-google-adbanner-logo-rtpanel/">Add Google ad-banner above logo in rtPanel</a> is a post from <a href="http://rtcamp.com">rtCamp</a></p>
Related Posts:<ol>
<li><a href='http://rtcamp.com/blog/add-googleadsense-link-unit-header/' rel='bookmark' title='Add Google Adsense Link Unit In Header'>Add Google Adsense Link Unit In Header</a></li>
<li><a href='http://rtcamp.com/blog/creating-metabox/' rel='bookmark' title='Create Metabox on rtPanel Child Theme'>Create Metabox on rtPanel Child Theme</a></li>
<li><a href='http://rtcamp.com/blog/custom-theme-options-rtpanel-child-theme/' rel='bookmark' title='Custom Theme Options in rtPanel Child Theme'>Custom Theme Options in rtPanel Child Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In <a title="rtPanel Hooks Map" href="http://rtcamp.com/blog/hooks-rtpanel-child-theme/">previous post</a>, we have seen the rtPanel Hooks map. Now lets see how we can we use &#8216;rtPanel Hooks&#8217; to add extra functionality while developing theme.</p>
<h3>Example &#8211; Adding Google-ad banner to rtPanel Child Theme  above logo:</h3>
<h3>Step 1:</h3>
<p>At first we will create a custom field (textarea) in the custom theme option. So that when google ads script is added to that field, the google ads will appear before logo of the site. The custom field can be defined in the file &#8216;rtp-custom-theme-options.php&#8217; which is under the lib folder of Child theme of rtPanel. (learn more about &#8211; <a title="Custom Theme Options in rtPanel" href="http://rtcamp.com/blog/custom-theme-options-rtpanel-child-theme/">custom theme options in rtPanel</a>)</p>
<h3>Step 2:</h3>
<p>Once textarea field is created, we will add the google ads script to this textarea. Now first we will create custom function as &#8220;rtp_google_ads&#8221; in the &#8216;function.php&#8217; which is present in the child theme folder. This is to display the google-ads.</p>
<pre>function rtp_google_ads(){
    global $rtp_custom_theme_options;
    echo $rtp_custom_theme_options['google_ads'];
}</pre>
<p>So once function is created, we need to “hook” the function to the &#8216;rtp_hook_before_logo&#8217; action hook so that Google ad will be displayed before the logo. So the code will be as below:</p>
<pre>add_action('rtp_hook_before_logo','rtp_google_ads');</pre>
<p style="text-align: left">After adding this code the google ads will be displayed before the logo. It is show in below screenshot.</p>
<p style="text-align: left"><a href="http://rtcamp.com/blog/roundup-4-portals-and-1-blog-launched-by-rtcamp-in-2010/" rel="attachment wp-att-1914"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="size-large  aligncenter  wp-image-5050" src="http://rtcamp.com/files/2012/02/google-ads-600x226.jpg" alt="" width="600" height="226" /></a></p>
<h3>Step 3:</h3>
<p>Once google ad is displayed we will add style it according. This can be done by adding CSS styling to the &#8216;style.php&#8217; file in the child theme folder.</p>
<p>Isn&#8217;t it pretty easy to add our own functionality to the theme!!! <img src='http://rtcamp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>This is just a small example to demonstrate how our &#8216;rtp_hook_before_logo&#8217; can be used. But there are many more things that can be achieved using this hook, as long as your creativity will not end. Some example usages are adding social networking icons, adding images, adding search textbox etc.</p>
<p>Do let us know, your creative usages of rtPanel Hooks via comments.</p>
<p>Related Posts:<ol>
<li><a href='http://rtcamp.com/blog/add-googleadsense-link-unit-header/' rel='bookmark' title='Add Google Adsense Link Unit In Header'>Add Google Adsense Link Unit In Header</a></li>
<li><a href='http://rtcamp.com/blog/creating-metabox/' rel='bookmark' title='Create Metabox on rtPanel Child Theme'>Create Metabox on rtPanel Child Theme</a></li>
<li><a href='http://rtcamp.com/blog/custom-theme-options-rtpanel-child-theme/' rel='bookmark' title='Custom Theme Options in rtPanel Child Theme'>Custom Theme Options in rtPanel Child Theme</a></li>
</ol></p><p><a href="http://rtcamp.com/blog/add-google-adbanner-logo-rtpanel/">Add Google ad-banner above logo in rtPanel</a> is a post from <a href="http://rtcamp.com">rtCamp</a></p>]]></content:encoded>
			<wfw:commentRss>http://rtcamp.com/blog/add-google-adbanner-logo-rtpanel/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Hooks in rtPanel Child theme</title>
		<link>http://rtcamp.com/blog/hooks-rtpanel-child-theme/</link>
		<comments>http://rtcamp.com/blog/hooks-rtpanel-child-theme/#comments</comments>
		<pubDate>Tue, 27 Mar 2012 07:13:22 +0000</pubDate>
		<dc:creator>Apeksha</dc:creator>
				<category><![CDATA[rtPanel]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://rtpanel.com/?p=1906</guid>
		<description><![CDATA[<p>As the theme frameworks are evolving, theme development is getting easier. The developers are also looking for frameworks with better control and more options to customize and streamline the development work. Developers are more inclined towards use of multiple actions, hooks and filters. Considering this, rtPanel has also been offering some awesome in-built hooks. The [...]</p><p><a href="http://rtcamp.com/blog/hooks-rtpanel-child-theme/">Hooks in rtPanel Child theme</a> is a post from <a href="http://rtcamp.com">rtCamp</a></p>
Related Posts:<ol>
<li><a href='http://rtcamp.com/blog/creating-clickable-header-image-child-theme/' rel='bookmark' title='Clickable header in rtPanel child theme'>Clickable header in rtPanel child theme</a></li>
<li><a href='http://rtcamp.com/blog/creating-custom-page-templates-rtpanel-child-theme/' rel='bookmark' title='Creating custom page templates in rtPanel child theme'>Creating custom page templates in rtPanel child theme</a></li>
<li><a href='http://rtcamp.com/blog/child-theme-development-rtpanel-part/' rel='bookmark' title='Child Theme development using rtPanel &#8211; Part I'>Child Theme development using rtPanel &#8211; Part I</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>As the theme frameworks are evolving, theme development is getting easier. The developers are also looking for frameworks with better control and more options to customize and streamline the development work. Developers are more inclined towards use of multiple actions, hooks and filters.</p>
<p>Considering this, rtPanel has also been offering some awesome in-built hooks. The inbuilt function such as Hooks allows a developer to rewrite content or append new functionality. To know more about the &#8216;rtPanel Hooks&#8217; refer <a href="http://rtcamp.com/rtpanel/docs/developer/#rtpanel-hooks" target="_blank">this</a>. To  make it further easy, we have provided a <a title="Hooks Editor Plugin" href="http://rtcamp.com/blog/rtpanel-hooks-editor/">rtPanel hooks editor plugin.</a></p>
<h3>rtPanel Hooks Layout Map:</h3>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter  wp-image-5053" src="http://rtcamp.com/files/2011/07/rtPanel-Action-Hooks.png" alt="" width="1423" height="2319" /></p>
<h3>Some other commonly used hooks are:</h3>
<ul>
<li>Using rtp_hook_before_header, rtp_hook_after_header, rtp_hook_after_logo.</li>
<li>Using rtp_hook_before_header can be used to display the content before header.</li>
<li>Using rtp_hook_after_logo can be used to display the content after the logo.</li>
<li>Using rtp_hook_after_header can be used to display the content after header.</li>
</ul>
<p>In further posts, we will give some examples and case studies about usages of rtPanel Hooks. You may ask your questions on our dedicated <a title="Support Forum" href="http://rtcamp.com/support/forum/rtpanel/forum/user/">support forum</a>.</p>
<p>Related Posts:<ol>
<li><a href='http://rtcamp.com/blog/creating-clickable-header-image-child-theme/' rel='bookmark' title='Clickable header in rtPanel child theme'>Clickable header in rtPanel child theme</a></li>
<li><a href='http://rtcamp.com/blog/creating-custom-page-templates-rtpanel-child-theme/' rel='bookmark' title='Creating custom page templates in rtPanel child theme'>Creating custom page templates in rtPanel child theme</a></li>
<li><a href='http://rtcamp.com/blog/child-theme-development-rtpanel-part/' rel='bookmark' title='Child Theme development using rtPanel &#8211; Part I'>Child Theme development using rtPanel &#8211; Part I</a></li>
</ol></p><p><a href="http://rtcamp.com/blog/hooks-rtpanel-child-theme/">Hooks in rtPanel Child theme</a> is a post from <a href="http://rtcamp.com">rtCamp</a></p>]]></content:encoded>
			<wfw:commentRss>http://rtcamp.com/blog/hooks-rtpanel-child-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Filters in rtPanel</title>
		<link>http://rtcamp.com/blog/filters-rtpanel/</link>
		<comments>http://rtcamp.com/blog/filters-rtpanel/#comments</comments>
		<pubDate>Fri, 23 Mar 2012 11:51:45 +0000</pubDate>
		<dc:creator>Apeksha</dc:creator>
				<category><![CDATA[rtPanel]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://rtpanel.com/?p=2171</guid>
		<description><![CDATA[<p>Filters are the special function able to modify the data without altering the core code. For example, changing &#8216;Read More&#8217; text  on the blog page can be changed using the &#8216;Filters&#8217;. In the rtPanel child theme we have provided 6 filters as follow: rtp_header_image_width: This is used to modify the width of the header image on [...]</p><p><a href="http://rtcamp.com/blog/filters-rtpanel/">Filters in rtPanel</a> is a post from <a href="http://rtcamp.com">rtCamp</a></p>
Related Posts:<ol>
<li><a href='http://rtcamp.com/blog/child-theme-development-rtpanel-part-2/' rel='bookmark' title='Child Theme development using rtPanel &#8211; Part 2'>Child Theme development using rtPanel &#8211; Part 2</a></li>
<li><a href='http://rtcamp.com/blog/child-theme-development-rtpanel-part/' rel='bookmark' title='Child Theme development using rtPanel &#8211; Part I'>Child Theme development using rtPanel &#8211; Part I</a></li>
<li><a href='http://rtcamp.com/blog/custom-theme-options-rtpanel-child-theme/' rel='bookmark' title='Custom Theme Options in rtPanel Child Theme'>Custom Theme Options in rtPanel Child Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Filters are the special function able to modify the data without altering the core code. For example, changing &#8216;Read More&#8217; text  on the blog page can be changed using the &#8216;Filters&#8217;.</p>
<p>In the rtPanel child theme we have provided 6 filters as follow:</p>
<p><strong>rtp_header_image_width: </strong>This is used to modify the width of the header image on your site. <a href="http://rtcamp.com/rtpanel/docs/developer/rtp_header_image_width/" target="_blank">Click here</a> for the code.</p>
<p><strong>rtp_header_image_height: </strong>This is used to modify the height of the header image on your site. <a href="http://rtcamp.com/rtpanel/docs/developer/rtp_header_image_height/" target="_blank">Click here</a> for the code.</p>
<p><strong>rtp_nav_menu_depth: </strong>This is used to specify the number of sub-menus/child to show in the primary menu. By default it is set to 4. <a href="http://rtcamp.com/rtpanel/docs/developer/rtp_nav_menu_depth/" target="_blank">Click  here</a> for the code.</p>
<p><strong>rtp_default_image_path: </strong>This could be used to specify the path to a default thumbnail image. Incase your posts don’t have a thumbnail, this default thumbnail image would show up. <a href="http://rtcamp.com/rtpanel/docs/developer/rtp_default_image_path/" target="_blank">Click here</a> for the code.</p>
<p><strong>rtp_readmore: </strong>This filter is used by rtPanel itself to wrap the read more text in square brackets. This could be used to remove the brackets or modify the read more text/link. <a href="http://rtcamp.com/rtpanel/docs/developer/rtp_readmore/" target="_blank">Click here </a>for the code.</p>
<p><strong>rtp_add_theme_pages:</strong> This hook is mainly for plugin development. This adds an option tab next to General, Post &amp; Comments.</p>
<h3>How to use Filter in the rtPanel  Child Theme?</h3>
<p>To use the filter you just have to add the respective code in the &#8220;function.php&#8221; file and add the desire value to the code. For example, if you want to show the child menu of primary menu, then you have add the<span style="color: #000000"> code as follows:</span></p>
<pre>function custom_rtp_nav_menu_depth( $depth ) {
 return 1;
 }
 add_filter( 'rtp_nav_menu_depth', 'custom_rtp_nav_menu_depth' );</pre>
<p>If you have questions about using filters, please feel free to ask them on our <a title="Support Forum" href="http://rtcamp.com/support/forum/rtpanel/forum/developer/">support forum</a>.</p>
<p>Related Posts:<ol>
<li><a href='http://rtcamp.com/blog/child-theme-development-rtpanel-part-2/' rel='bookmark' title='Child Theme development using rtPanel &#8211; Part 2'>Child Theme development using rtPanel &#8211; Part 2</a></li>
<li><a href='http://rtcamp.com/blog/child-theme-development-rtpanel-part/' rel='bookmark' title='Child Theme development using rtPanel &#8211; Part I'>Child Theme development using rtPanel &#8211; Part I</a></li>
<li><a href='http://rtcamp.com/blog/custom-theme-options-rtpanel-child-theme/' rel='bookmark' title='Custom Theme Options in rtPanel Child Theme'>Custom Theme Options in rtPanel Child Theme</a></li>
</ol></p><p><a href="http://rtcamp.com/blog/filters-rtpanel/">Filters in rtPanel</a> is a post from <a href="http://rtcamp.com">rtCamp</a></p>]]></content:encoded>
			<wfw:commentRss>http://rtcamp.com/blog/filters-rtpanel/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Happy Birthday to rtCamp! (3rd Anniversary)</title>
		<link>http://rtcamp.com/blog/happy-birthday-rtcamp-3rd-anniversary/</link>
		<comments>http://rtcamp.com/blog/happy-birthday-rtcamp-3rd-anniversary/#comments</comments>
		<pubDate>Mon, 12 Mar 2012 09:37:13 +0000</pubDate>
		<dc:creator>Rahul Bansal</dc:creator>
				<category><![CDATA[Anniversary]]></category>
		<category><![CDATA[rtCamp]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[rtParty]]></category>
		<category><![CDATA[rtParty 2012]]></category>

		<guid isPermaLink="false">http://rtcamp.com/?p=2813</guid>
		<description><![CDATA[<p>rtCamp completes 3 years in this world today. Many thanks to all our well-wishers, clients and partners out there for their support. :-)</p><p><a href="http://rtcamp.com/blog/happy-birthday-rtcamp-3rd-anniversary/">Happy Birthday to rtCamp! (3rd Anniversary)</a> is a post from <a href="http://rtcamp.com">rtCamp</a></p>
Related Posts:<ol>
<li><a href='http://rtcamp.com/blog/photos-rtparty2011-rtcamps-second-anniversary-celebration/' rel='bookmark' title='[Photos] rtParty2011 &#8211; rtCamp&#8217;s Second Anniversary Celebration'>[Photos] rtParty2011 &#8211; rtCamp&#8217;s Second Anniversary Celebration</a></li>
<li><a href='http://rtcamp.com/blog/rtcamp-is-celebrating-its-1st-birthday/' rel='bookmark' title='rtCamp is Celebrating its 1st Birthday!'>rtCamp is Celebrating its 1st Birthday!</a></li>
<li><a href='http://rtcamp.com/blog/rtcamp-is-now-2-years-old/' rel='bookmark' title='rtCamp is Now 2 Years Old :-)'>rtCamp is Now 2 Years Old :-)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>We have a reason to rejoice! Our dear rtCamp complets 3 year in this world today! <img src='http://rtcamp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><a href="http://rtcamp.com/files/2012/03/rtCamp-3rdAnniversary.jpg"><img class="size-large wp-image-2814 alignnone" title="rtCamp-3rdAnniversary" src="http://rtcamp.com/files/2012/03/rtCamp-3rdAnniversary-600x350.jpg" alt="" width="600" height="350" /></a></p>
<p>Today is a special day to remember contribution from all rtCampers and thank all our well-wishers, clients and partners out there.</p>
<h3>The best is yet to be&#8230;</h3>
<p>We achieved many things last year including <a href="http://rtcamp.com/rtpanel/">rtPanel</a>, an open-source WordPress theme framework, which is growing rapidly.</p>
<p>As we are entering into 4th year, it feels good to be part of a team of extraordinary rtCampers whose passion will help us achieve new feats (like preceding year before!)</p>
<p>Rather than speaking about our plans for year ahead, I would like to get back to work so we can ship something for real! <img src='http://rtcamp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<h3><strong>rtParty 2012</strong></h3>
<p>Rather than having an average celebration on a working day, we choose a secluded beach - <a rel="nofollow" href="http://wikitravel.org/en/Dapoli">Karde,  near Dapoli in Ratnagiri District in Maharashtra</a> for a weekend party. The best thing about that place was &#8211; no cellphone or internet access &#8211; which left rtCampers with no other option but to enjoy <strong>rtParty 2012</strong>.</p>
<p>If entire rtCamp&#8217;s unavailability had caused any inconvenience to you, as leader of these supercharged knights, I apologies to you for this &#8220;downtime&#8221;.</p>
<div id="attachment_2819" class="wp-caption alignnone" style="width: 610px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center;"><a href="http://rtcamp.com/files/2012/03/IMG_1460.jpg"><img class="size-large wp-image-2819 " title="rtCamp 3rd Anniversary" src="http://rtcamp.com/files/2012/03/IMG_1460-600x337.jpg" alt="" width="600" height="337" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">rtCamp 3rd Anniversary</p></div>
<p><strong>Photos:</strong></p>
<p><a rel="nofollow" href="https://picasaweb.google.com/114003667240371142699/RtParty2012?authuser=0&amp;feat=directlink">rtParty 2012 photo gallery is here</a>. Same photos are also embedded below:</p>
<p><object width="600" height="400" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="https://picasaweb.google.com/s/c/bin/slideshow.swf" /><param name="flashvars" value="host=picasaweb.google.com&amp;captions=1&amp;hl=en_GB&amp;feat=flashalbum&amp;RGB=0x000000&amp;feed=https%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F114003667240371142699%2Falbumid%2F5718885746537417201%3Falt%3Drss%26kind%3Dphoto%26hl%3Den_GB" /><param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" /><embed width="600" height="400" type="application/x-shockwave-flash" src="https://picasaweb.google.com/s/c/bin/slideshow.swf" flashvars="host=picasaweb.google.com&amp;captions=1&amp;hl=en_GB&amp;feat=flashalbum&amp;RGB=0x000000&amp;feed=https%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F114003667240371142699%2Falbumid%2F5718885746537417201%3Falt%3Drss%26kind%3Dphoto%26hl%3Den_GB" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></p>
<p>Related Posts:<ol>
<li><a href='http://rtcamp.com/blog/photos-rtparty2011-rtcamps-second-anniversary-celebration/' rel='bookmark' title='[Photos] rtParty2011 &#8211; rtCamp&#8217;s Second Anniversary Celebration'>[Photos] rtParty2011 &#8211; rtCamp&#8217;s Second Anniversary Celebration</a></li>
<li><a href='http://rtcamp.com/blog/rtcamp-is-celebrating-its-1st-birthday/' rel='bookmark' title='rtCamp is Celebrating its 1st Birthday!'>rtCamp is Celebrating its 1st Birthday!</a></li>
<li><a href='http://rtcamp.com/blog/rtcamp-is-now-2-years-old/' rel='bookmark' title='rtCamp is Now 2 Years Old :-)'>rtCamp is Now 2 Years Old :-)</a></li>
</ol></p><p><a href="http://rtcamp.com/blog/happy-birthday-rtcamp-3rd-anniversary/">Happy Birthday to rtCamp! (3rd Anniversary)</a> is a post from <a href="http://rtcamp.com">rtCamp</a></p>]]></content:encoded>
			<wfw:commentRss>http://rtcamp.com/blog/happy-birthday-rtcamp-3rd-anniversary/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Custom Theme Options in rtPanel Child Theme</title>
		<link>http://rtcamp.com/blog/custom-theme-options-rtpanel-child-theme/</link>
		<comments>http://rtcamp.com/blog/custom-theme-options-rtpanel-child-theme/#comments</comments>
		<pubDate>Tue, 28 Feb 2012 11:56:22 +0000</pubDate>
		<dc:creator>Apeksha</dc:creator>
				<category><![CDATA[rtPanel]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://rtpanel.com/?p=1925</guid>
		<description><![CDATA[<p>Till now we have written many articles mentioning the features of rtPanel Child theme. In this post we will discuss one more features of rtPanel Child theme i.e. &#8220;Custom Theme Options&#8221;. What is ‘Custom Theme Options’? The &#8220;Custom Theme Options&#8221; is useful when we need to display the same content  (graphics/image/text) on all/some pages and [...]</p><p><a href="http://rtcamp.com/blog/custom-theme-options-rtpanel-child-theme/">Custom Theme Options in rtPanel Child Theme</a> is a post from <a href="http://rtcamp.com">rtCamp</a></p>]]></description>
			<content:encoded><![CDATA[<p>Till now we have written many articles mentioning the features of rtPanel Child theme. In this post we will discuss one more features of rtPanel Child theme i.e. &#8220;Custom Theme Options&#8221;.</p>
<h3>What is ‘Custom Theme Options’?</h3>
<p>The &#8220;Custom Theme Options&#8221; is useful when we need to display the same content  (graphics/image/text) on all/some pages and provide flexibility to the user to modify/change that content as per their desire (without touching the code).<br />
For example, most of the websites have the social networking icons. Site Owner will prefer to have complete control over social networking links and icons&#8217; display in their website. In this case using Custom Theme Options will be a good approach to achieve this functionality.</p>
<h3>Creating Custom Theme Options for post in rtPanel Child Theme</h3>
<h4>Inbuilt Function</h4>
<p>&#8220;<em><strong>Custom Theme Options.php</strong></em>&#8221; file is available in <strong>lib folder</strong> of <a title="rtPanel Child Theme" rel="nofollow" href="http://rt.cx/rtpanelchild">rtPanel Child Theme</a>. This file by default has &#8220;TextBox&#8221;, &#8220;TextArea&#8221;, and &#8220;Image Uploader&#8221; field. Hence by using required field name in the code we can display the value/content of that field at the desired place in the site.</p>
<h3>How to use the function</h3>
<p>The functions required to create Custom Theme Options are as follow:</p>
<ul>
<li><strong>rtp_custom_theme_options( $theme_pages ): </strong>This function is used to set name of &#8216;custom theme options&#8217;.</li>
<li><strong>rtp_custom_theme_default_values(): </strong>This function is used to set the default value of fields that will be used in the custom theme options.</li>
<li><strong>rtp_custom_theme_options_metabox(): </strong>This is a function, where actual fields are constructed. Here you have to set the label name for the field that is created for e.g. here we have created the<strong> textbox</strong> and its <strong>label</strong>.</li>
</ul>
<pre>&lt;tr valign="top"&gt;
 &lt;th scope="row"&gt;&lt;label for="rtp_title"&gt; &lt;?php _e( 'Enter the text that you want to display after every post:', 'rtPanel' ); ?&gt; &lt;/label&gt; &lt;/th&gt;
 &lt;td&gt;
 &lt;input type="text" value="&lt;?php echo $rtp_custom_theme_options['title']; ?&gt;" size="40" name="custom_theme_options[title]" id="rtp_title" /&gt;
 &lt;/td&gt;
 &lt;/tr&gt;</pre>
<p style="text-align: center;">After creating this field it will look like below screenshot on the &#8216;Custom Theme Option&#8217; page in the dashboard of admin side.<br />
<img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter   wp-image-5056" src="http://rtcamp.com/files/2012/02/customthemeoptions2.jpg" alt="" width="1123" height="491" /><a href="http://rtcamp.com/blog/rtcamps-theme-rtmoto-now-available-in-the-wordpress-theme-directory/" rel="attachment wp-att-1984"><br />
</a><br />
<strong>rtp_custom_theme_options_validate( $input )</strong><br />
This function defines the codes, which which validates the fields.</p>
<p>In this way the custom field in the Custom Theme Options can be created.</p>
<h3>How to implement:</h3>
<p>Now to implement the field value in your site you can create the custom function in &#8216;function.php&#8217; file.<br />
for e.g.</p>
<pre>&lt;?php function rtp_msg(){
    global $rtp_custom_theme_options;
    echo $rtp_custom_theme_options['title'];
}
add_action('rtp_hook_end_post_content','rtp_msg');</pre>
<p>This is how the Custom Theme Options can be used in site.</p>
<h3>Live Example</h3>
<p style="text-align: left;">In one of our projects -<a rel="nofollow" href="http://kashyapgroups.com/"> Kashyap Groups</a>; the custom theme option has been used to set the company&#8217;s Facebook and Twitter id.<br />
Below is the screenshot of the Custom Theme Option in the admin side:</p>
<p style="text-align: center;"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter  wp-image-1953" src="http://rtcamp.com/files/2012/02/customthemeoptions.jpg" alt="" width="1120" height="558" /><a href="http://rtcamp.com/blog/rtcamps-theme-rtmoto-now-available-in-the-wordpress-theme-directory/" rel="attachment wp-att-1984"><br />
</a><a href="http://rtcamp.com/blog/roundup-2010-the-year-of-rtcamp/" rel="attachment wp-att-1953"><br />
</a><br />
This Custom Theme Option was used to set the companies Facebook and Twitter id on the site.</p>
<p style="text-align: left;"><img class="alignnone  wp-image-2039" src="http://rtcamp.com/files/2012/02/kashyap-groups1.png" alt="" width="983" height="471" /></p>
<h3>Conclusion</h3>
<p>Its easy to develop the Custom Theme Options in rtPanel by using the provided functions. Theme options allows site owner to change or modify the content as per their desire!!!</p>
<p><a href="http://rtcamp.com/blog/custom-theme-options-rtpanel-child-theme/">Custom Theme Options in rtPanel Child Theme</a> is a post from <a href="http://rtcamp.com">rtCamp</a></p>]]></content:encoded>
			<wfw:commentRss>http://rtcamp.com/blog/custom-theme-options-rtpanel-child-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Integrated SEO plugin in rtPanel</title>
		<link>http://rtcamp.com/blog/seo-plugin-integrated-rtpanel/</link>
		<comments>http://rtcamp.com/blog/seo-plugin-integrated-rtpanel/#comments</comments>
		<pubDate>Thu, 23 Feb 2012 14:32:50 +0000</pubDate>
		<dc:creator>Apeksha</dc:creator>
				<category><![CDATA[rtPanel]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://rtpanel.com/?p=1549</guid>
		<description><![CDATA[<p>The website is successful when it meets its visitors&#8217; needs. The presentation of the site, site contents,having facilities of subscription etc can attract the visitors who were looking for the similar information. But all above this, to keep your website at the top in the  search results your website needs to be SEO optimized. More [...]</p><p><a href="http://rtcamp.com/blog/seo-plugin-integrated-rtpanel/">Integrated SEO plugin in rtPanel</a> is a post from <a href="http://rtcamp.com">rtCamp</a></p>
Related Posts:<ol>
<li><a href='http://rtcamp.com/blog/rtpanel-hooks-editor/' rel='bookmark' title='rtPanel Hooks Editor Plugin Launched'>rtPanel Hooks Editor Plugin Launched</a></li>
<li><a href='http://rtcamp.com/blog/rtpanel-theme-option-general/' rel='bookmark' title='rtPanel Theme Options &#8216;General&#8217;'>rtPanel Theme Options &#8216;General&#8217;</a></li>
<li><a href='http://rtcamp.com/blog/rtpanel-is-now-in-wordpress-org-directory/' rel='bookmark' title='rtPanel is now in official WordPress Theme Directory'>rtPanel is now in official WordPress Theme Directory</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The website is successful when it meets its visitors&#8217; needs. The presentation of the site, site contents,having facilities of subscription etc can attract the visitors who were looking for the similar information. But all above this, to keep your website at the top in the  search results your website needs to be SEO optimized. More the SEO ranking of the site more visitors will prefer your site.</p>
<blockquote><p><strong>Many a times, we have been asked, why rtPanel do not have in-built SEO features?</strong></p></blockquote>
<p>rtPanel has integrated with <a title="Yoast SEO" rel="nofollow" href="http://wordpress.org/extend/plugins/wordpress-seo/">WordPress SEO by Yoast plugin</a>. We do not want to lock-in any user in our theme framework. So we deliberately avoid running into plugin territory. Yoast plugin being a matured plugin fulfills the SEO requirement of rtPanel. Further more the mark-up of rtPanel theme framework is also SEO friendly.</p>
<p style="text-align: center;">This plugin can be seen here in admin area Appearnce &gt; rtPanel &gt; General &gt; &#8216;Plugin Support&#8217; section.<br />
<a href="http://rtcamp.com/files/2012/01/seo-plugin.jpg"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-large  wp-image-5059" src="http://rtcamp.com/files/2012/01/seo-plugin-600x162.jpg" alt="" width="600" height="162" /></a><br />
(Already referred in <a href="http://rtcamp.com/blog/rtpanel-theme-option-general/" target="_blank">rtPanel Theme Options ‘General’</a> article.)<br />
You can refer this <a rel="nofollow" href="http://yoast.com/articles/wordpress-seo/" target="_blank">Guide</a> to know more about the configuring the SEO plugin so that your site can be optimized.</p>
<p>Related Posts:<ol>
<li><a href='http://rtcamp.com/blog/rtpanel-hooks-editor/' rel='bookmark' title='rtPanel Hooks Editor Plugin Launched'>rtPanel Hooks Editor Plugin Launched</a></li>
<li><a href='http://rtcamp.com/blog/rtpanel-theme-option-general/' rel='bookmark' title='rtPanel Theme Options &#8216;General&#8217;'>rtPanel Theme Options &#8216;General&#8217;</a></li>
<li><a href='http://rtcamp.com/blog/rtpanel-is-now-in-wordpress-org-directory/' rel='bookmark' title='rtPanel is now in official WordPress Theme Directory'>rtPanel is now in official WordPress Theme Directory</a></li>
</ol></p><p><a href="http://rtcamp.com/blog/seo-plugin-integrated-rtpanel/">Integrated SEO plugin in rtPanel</a> is a post from <a href="http://rtcamp.com">rtCamp</a></p>]]></content:encoded>
			<wfw:commentRss>http://rtcamp.com/blog/seo-plugin-integrated-rtpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc
Database Caching 11/130 queries in 0.040 seconds using apc
Object Caching 3626/3761 objects using apc

Served from: rtcamp.com @ 2012-05-17 13:16:05 -->
