<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>WPSmart - WordPress Tips, Tutorials and Themes</title> <link>http://www.wpsmart.com</link> <description /> <lastBuildDate>Wed, 13 Jul 2011 05:09:06 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/wpsmart" /><feedburner:info uri="wpsmart" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><title>Top 5 Must Have Plugins for WordPress</title><link>http://feedproxy.google.com/~r/wpsmart/~3/9Gzcso-xfHk/</link> <comments>http://www.wpsmart.com/2011/top-5-must-have-plugins-for-wordpress/#comments</comments> <pubDate>Mon, 11 Jul 2011 19:01:50 +0000</pubDate> <dc:creator>Kaiser</dc:creator> <category><![CDATA[Plugins]]></category><guid isPermaLink="false">http://www.wpsmart.com/?p=143</guid> <description><![CDATA[WordPress Plugins database keeps growing and now contains more than 15,000 plugins. Here are my Top 5 must have WordPress Plugins that I install at almost every WordPress site. 1- Contact Form 7 Contact form 7 makes it simple to &#8230; <a
href="http://www.wpsmart.com/2011/top-5-must-have-plugins-for-wordpress/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>WordPress Plugins database keeps growing and now contains more than 15,000 plugins. Here are my Top 5 must have WordPress Plugins that I install at almost every WordPress site.</p><p><span
id="more-143"></span></p><p>1- <strong>Contact Form 7</strong></p><p><span
style="color: #000000;">Contact form 7 makes it simple to add a </span>contact<span
style="color: #000000;"> form to your site. We use it for our contact form here at WPSmart.</span></p><p><span
style="color: #000000;">Get it here: <a
href="http://wordpress.org/extend/plugins/contact-form-7/">http://wordpress.org/extend/plugins/contact-form-7/</a></span></p><p>2- <strong>Google XML Sitemaps</strong></p><p>Google XML sitemaps is a must to create sitemaps for your blog.</p><p>Get it here: <a
href="http://wordpress.org/extend/plugins/google-sitemap-generator/">http://wordpress.org/extend/plugins/google-sitemap-generator/</a></p><p><span
style="color: #000000;">3-  </span><span
class="Apple-style-span" style="color: #000000; font-weight: bold;">W3 Total Cache</span></p><p>WordPress need to process tons of scripts and connections to database to create your page. This can cause significant slow response time for your site. W3 Total Cache caches your pages so they don&#8217;t need to processed every time someone visits your website.</p><p>Get it here : <a
href="http://wordpress.org/extend/plugins/w3-total-cache/" target="_blank">http://wordpress.org/extend/plugins/w3-total-cache/</a></p><p>4- <strong>WP Smush.it</strong></p><p>Automatically compresses your images so you don&#8217;t have to do it manually.</p><p>Get it here: <a
href="http://wordpress.org/extend/plugins/wp-smushit/" target="_blank">http://wordpress.org/extend/plugins/wp-smushit/</a></p><p>5- <strong>All in One SEO Pack</strong></p><p>Must have for all your seo needs.</p><p>Get it here : <a
href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/">http://wordpress.org/extend/plugins/all-in-one-seo-pack/</a></p><p>&nbsp;</p><p>&nbsp;</p> <img src="http://feeds.feedburner.com/~r/wpsmart/~4/9Gzcso-xfHk" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.wpsmart.com/2011/top-5-must-have-plugins-for-wordpress/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://www.wpsmart.com/2011/top-5-must-have-plugins-for-wordpress/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=top-5-must-have-plugins-for-wordpress</feedburner:origLink></item> <item><title>WordPress updated to 3.2</title><link>http://feedproxy.google.com/~r/wpsmart/~3/DFudzV2XYvU/</link> <comments>http://www.wpsmart.com/2011/wordpress-updates-to-3-2/#comments</comments> <pubDate>Sat, 09 Jul 2011 21:39:07 +0000</pubDate> <dc:creator>Kaiser</dc:creator> <category><![CDATA[News]]></category><guid isPermaLink="false">http://www.wpsmart.com/?p=278</guid> <description><![CDATA[It&#8217;s been a long time since I last updated the blog. A lot has happened since then and I will be covering them in near future. WordPress was recently updated to version 3.2 with a brand new look for Administrative &#8230; <a
href="http://www.wpsmart.com/2011/wordpress-updates-to-3-2/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>It&#8217;s been a long time since I last updated the blog. A lot has happened since then and I will be covering them in near future.<span
id="more-278"></span></p><p>WordPress was recently updated to version 3.2 with a brand new look for Administrative UI. You can see the overall change in the screenshot below.</p><p><a
href="http://www.wpsmart.com/2011/wordpress-updates-to-3-2/wordpress3-2-comparison/" rel="attachment wp-att-280"><img
class="aligncenter size-full wp-image-280" title="WordPress 3.2 Admin UI Comparison" src="http://wpsmart.s3.amazonaws.com/wp-content/pics/wordpress3.2-comparison.png" alt="Comparison of WordPress Admin UI" width="367" height="470" /></a><br
/> This version also drops support for Internet Explorer 6. There has been some improvements to page load speeds and overall wordpress seems lighter and faster. If you haven&#8217;t updated yet please do so now.</p><p>Download it <a
href="http://wordpress.org/download/" title="Latest" target="_blank">here</a></p><p>Stay tuned for new tips and tutorials.</p> <img src="http://feeds.feedburner.com/~r/wpsmart/~4/DFudzV2XYvU" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.wpsmart.com/2011/wordpress-updates-to-3-2/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.wpsmart.com/2011/wordpress-updates-to-3-2/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=wordpress-updates-to-3-2</feedburner:origLink></item> <item><title>WordPress updated to 3.0.3</title><link>http://feedproxy.google.com/~r/wpsmart/~3/G7CK8PwCxS0/</link> <comments>http://www.wpsmart.com/2010/wordpress-updated-to-3-0-3/#comments</comments> <pubDate>Thu, 09 Dec 2010 15:56:03 +0000</pubDate> <dc:creator>Kaiser</dc:creator> <category><![CDATA[News]]></category><guid isPermaLink="false">http://www.wpsmart.com/?p=257</guid> <description><![CDATA[WordPress has release another security update for the WordPress. This time it is related to remote publishing interface and users that have remote publishing enabled are advised to update to version 3.03. Download it here http://wordpress.org/]]></description> <content:encoded><![CDATA[<p>WordPress has release another security update for the WordPress. This time it is related to remote publishing interface and users that have remote publishing enabled are advised to update to version 3.03.</p><p>Download it here <a
href="http://wordpress.org/">http://wordpress.org/</a></p> <img src="http://feeds.feedburner.com/~r/wpsmart/~4/G7CK8PwCxS0" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.wpsmart.com/2010/wordpress-updated-to-3-0-3/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.wpsmart.com/2010/wordpress-updated-to-3-0-3/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=wordpress-updated-to-3-0-3</feedburner:origLink></item> <item><title>How to Use WordPress’ built in Script Libraries – Tip</title><link>http://feedproxy.google.com/~r/wpsmart/~3/cdAFALruDgI/</link> <comments>http://www.wpsmart.com/2010/how-to-use-wordpress-built-in-script-libraries-tip/#comments</comments> <pubDate>Sun, 05 Dec 2010 19:23:19 +0000</pubDate> <dc:creator>Kaiser</dc:creator> <category><![CDATA[WordPress Tips]]></category><guid isPermaLink="false">http://www.wpsmart.com/?p=236</guid> <description><![CDATA[WordPress comes with a lot of built in Javscript libraries, frameworks, plugins..etc that you can use in your themes with a single line of code. You will find a list of scripts bundled with WordPress here. I will show you &#8230; <a
href="http://www.wpsmart.com/2010/how-to-use-wordpress-built-in-script-libraries-tip/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>WordPress comes with a lot of built in Javscript libraries, frameworks, plugins..etc that you can use in your themes with a single line of code. You will find a list of scripts bundled with WordPress <a
href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script">here</a>. I will show you how to add &#8220;Jquery&#8221; and &#8220;Prototype&#8221; to your themes.</p><p><span
id="more-236"></span></p><h3>Jquery</h3><p>Simply add the script below above your wp_head(); in your header.php.</p><pre name="code" class="php">&lt;?php wp_enqueue_script("jquery"); ?&gt;</pre><h3>Prototype</h3><p>Add the code below above your wp_head(); in your header.php.</p><pre name="code" class="php">&lt;?php wp_enqueue_script("prototype"); ?&gt;</pre><p>That&#8217;s it.</p> <img src="http://feeds.feedburner.com/~r/wpsmart/~4/cdAFALruDgI" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.wpsmart.com/2010/how-to-use-wordpress-built-in-script-libraries-tip/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.wpsmart.com/2010/how-to-use-wordpress-built-in-script-libraries-tip/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-use-wordpress-built-in-script-libraries-tip</feedburner:origLink></item> <item><title>Coding the Header of WordPress Theme</title><link>http://feedproxy.google.com/~r/wpsmart/~3/voxhG6-CLPo/</link> <comments>http://www.wpsmart.com/2010/coding-the-header-of-wordpress-theme/#comments</comments> <pubDate>Sat, 04 Dec 2010 16:59:28 +0000</pubDate> <dc:creator>Kaiser</dc:creator> <category><![CDATA[Theme Development]]></category><guid isPermaLink="false">http://www.wpsmart.com/?p=194</guid> <description><![CDATA[In our previous tutorial we built a very basic blank WordePress theme from scratch. Building Blocks of WordPress Theme. Today we&#8217;re going to design and code the header.php of our theme and then call that header from our index.php. What&#8217;s &#8230; <a
href="http://www.wpsmart.com/2010/coding-the-header-of-wordpress-theme/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>In our previous tutorial we built a very basic blank WordePress theme from scratch. <a
href="http://www.wpsmart.com/2010/building-bocks-of-wordpress-theme/" target="_self">Building Blocks of WordPress Theme</a>.</p><p>Today we&#8217;re going to design and code the header.php of our theme and then call that header from our index.php.</p><p><span
id="more-194"></span></p><h2>What&#8217;s a header.php?</h2><p>header.php is basically a file that will define the Header of our theme. It usually contains the doc type , style sheets and other header information. You can also add your logo and navigation to this theme. It&#8217;s perfectly fine to use predefined header.php of some theme framework such as <a
href="http://starkerstheme.com/">Starker</a> and edit it according to your needs.</p><p>We&#8217;ll define our top navigation and logo in our header.php . It&#8217;s really is a personal choice and you can just keep your header.php to basic header info if you want to or rename your header.php to anything you want.</p><p>What you need to keep in mind is that you must include <strong>wp_head()</strong> function in this file regardless of the name of the file.</p><h2>Step 1</h2><p>Create a new file in your favorite code editor and save it as header.php.</p><p>DOCTYPE</p><p><span
style="color: #000000;">we begin with a DOCTYPE declaration and for our theme we will use simple HTML5 doctype.</span></p><p><span
style="color: #000000;">Which DOCTYPE should you choose? Well it&#8217;s one again a personal choice. HTML5 Doctype will render pages in standards mode and that&#8217;s what we want.</span></p><pre name="code" class="html">&lt;!DOCTYPE html&gt;</pre><h2>Step 2</h2><p>No we begin our html tag and add a wordpress function that will set html language attributes.</p><pre name="code" class="html">&lt;html &lt;?php language_attributes(); ?&gt;&gt;</pre><p>As you can see language_attributes is a wordpress function that will set our lang and dir attribute and for the default english installations it will render the code below.</p><pre name="code" class="html">&lt;html lang="en-US" dir="ltr" &gt;</pre><p>If you have no plans to release your theme to the world, you can just add the code above directly into your header.php instead of using the language_attributes function and reduce the workload on your php interpreter.</p><h2>Step 3</h2><p>Next comes the meta tag and this time we&#8217;ll set the charset attribute that will define the character set of our document.</p><pre name="code" class="html">&lt;meta charset="&lt;?php bloginfo( 'charset' ); ?&gt;" /&gt;</pre><p>You can also set it to utf-8  directly and avoid another php function.</p><h2>Step 4</h2><p>Now we need to add title tag to our document. The &lt;title&gt; tag basically defines the title in the browser toolbar and favorites. Properly defined title tag is a must for your pages to rank well in search engines.</p><p>WordPress has a built in function for titles called  <a
href="http://codex.wordpress.org/Function_Reference/wp_title">wp_title</a>. By default it outputs blank for home page. There are many ways we can optimize the title tag but it&#8217;s something we&#8217;ll explain in another tutorial. For the purpose of this tutorial we&#8217;ll use the code below to define our title tag.</p><pre name="code" class="php">&lt;?php bloginfo('name'); ?&gt; &lt;?php wp_title('|',true,'');?&gt;;</pre><p>The code above will print blog name on home page.</p><h2>Step 5</h2><p>Now we&#8217;ll define profile, add style-sheet and pingback url using rel tag.</p><pre name="code" class="html">&lt;link rel="profile" href="http://gmpg.org/xfn/11" /&gt;
&lt;link rel="stylesheet" type="text/css" media="all" href="&lt;?php bloginfo( 'stylesheet_url' ); ?&gt;" /&gt;
&lt;link rel="pingback" href="&lt;?php bloginfo( 'pingback_url' ); ?&gt;" /&gt;</pre><h2>Step 6</h2><p>Last but not least we need to add WordPress function wp_head() to close our head tag. This function is a must as it is required by plugins. Add the code below to close your header tag.</p><pre name="code" class="html">&lt;?php wp_head();?&gt;
&lt;/head&gt;</pre><p>Put it all together.</p><pre name="code" class="html">&lt;!DOCTYPE html&gt;
&lt;html &lt;?php language_attributes(); ?&gt;&gt;
&lt;head&gt;
&lt;meta charset="&lt;?php bloginfo( 'charset' );?&gt;"/&gt;
&lt;title&gt;&lt;?php bloginfo('name'); ?&gt; &lt;?php wp_title('|',true,'');?&gt;&lt;/title&gt;
&lt;link rel="profile" href="http://gmpg.org/xfn/11"/&gt;
&lt;link rel="stylesheet" type="text/css" media="all" href="&lt;?php bloginfo( 'stylesheet_url' ); ?&gt;" /&gt;

&lt;?php wp_head();?&gt;
&lt;/head&gt;</pre><p>and that&#8217;s your header tag.</p><p>Now we&#8217;ll add our top navigation and &lt;h1&gt; tag that we&#8217;ll replace later on with a logo.</p><h2>Adding Navigation</h2><p>There are many ways to add navigation in wordpress. WordPress 3 introduced a new function called <strong>wp_nav_menu</strong> and that&#8217;s what we&#8217;ll use today. You&#8217;ll learn more about navigation in our future tutorials.</p><p>Create a new file in your theme directory and save it as<strong> functions.php</strong>. Add the code below to register your menu in functions.php.</p><pre name="code" class="html">&lt;?php
function register_our_menu(){
register_nav_menus(
array(
'primary-menu'=&gt;__('Top Menu'))
);
}
add_action( 'init', 'register_our_menu' );
?&gt;</pre><p>The code above registered one custom menu. Now we need to edit our<strong> header.php</strong> to display our custom menu.</p><p>Add the code below anywhere in the theme to display your custom menu.</p><pre name="code" class="html">&lt;?php wp_nav_menu( array( 'theme_location' =&gt; 'primary-menu' ) ); ?&gt;</pre><p>The code above will fall back to wp_list_pages until you define your own custom menu. By default wp_list_pages doesn&#8217;t display Home link so we need to add another function to our functions.php.</p><p>Add the code below to your <strong>functions.php</strong></p><pre name="code" class="html">&lt;?php
function add_home_link($args){
	$args['show_home'] = true;
	return $args;
}
add_filter('wp_page_menu_args','add_home_link');
?&gt;</pre><p>Voila!</p><p>Now we need to create a basic HTML structure of our theme. Add the code below to your header.php just below the &lt;/head&gt; tag.</p><pre name="code" class="html">&lt;body&gt;
&lt;div id="container"&gt;
&lt;div id="masthead"&gt;

&lt;?php wp_nav_menu( array( 'theme_location' =&gt; 'primary-menu' ) ); ?&gt;

&lt;div id="logo"&gt;

&lt;/div&gt;&lt;!--end logo--&gt;</pre><p>As you can see we have simple basic structure for our header. We have a container div and a masthead div that will act as container of our header then we have php code to display our custom menu. We also have div with an id of logo for our logo.</p><h2>Logo:</h2><p>Logo in our theme will appear below the top navigation. We will design our logo in future tutorials but for now we&#8217;ll add the link with our site title in &lt;h1&gt; tag. Add the code below inside your div with the id of logo.</p><pre name="code" class="html">	&lt;h1 id="site_title"&gt;
		&lt;a href="&lt;?php echo home_url();?&gt;" title="&lt;?php bloginfo('name'); ?&gt;" rel="home"&gt;&lt;?php bloginfo( 'name' ); ?&gt; &lt;/a&gt;
	&lt;/h1&gt;</pre><p>That&#8217;s it.  Below is the code for our header.php.</p><pre name="code" class="html">&lt;!DOCTYPE html&gt;
&lt;html &lt;?php language_attributes(); ?&gt;&gt;
&lt;head&gt;
&lt;meta charset="&lt;?php bloginfo( 'charset' );?&gt;"/&gt;
&lt;title&gt;&lt;?php bloginfo('name'); ?&gt; &lt;?php wp_title('|',true,'');?&gt;&lt;/title&gt;
&lt;link rel="profile" href="http://gmpg.org/xfn/11"/&gt;
&lt;link rel="stylesheet" type="text/css" media="all" href="&lt;?php bloginfo( 'stylesheet_url' ); ?&gt;" /&gt;
&lt;link rel="pingback" href="&lt;?php bloginfo( 'pingback_url' ); ?&gt;"&gt;
&lt;?php wp_head();?&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id="container"&gt;
&lt;div id="masthead"&gt;

&lt;?php wp_nav_menu( array( 'theme_location' =&gt; 'primary-menu' ) ); ?&gt;

&lt;div id="logo"&gt;
	&lt;h1 id="site_title"&gt;
		&lt;a href="&lt;?php echo home_url();?&gt;" title="&lt;?php bloginfo('name'); ?&gt;" rel="home"&gt;&lt;?php bloginfo( 'name' ); ?&gt; &lt;/a&gt;
	&lt;/h1&gt;

&lt;/div&gt;&lt;!--end logo--&gt;

&lt;/div&gt;&lt;!--end masthead--&gt;</pre><p>The output should like below.</p><p><a
rel="attachment wp-att-227" href="http://www.wpsmart.com/2010/coding-the-header-of-wordpress-theme/output_of_header/"><img
class="aligncenter size-full wp-image-227" title="output_of_header" src="http://wpsmart.s3.amazonaws.com/wp-content/pics/output_of_header.gif" alt="Output of our header.php" width="212" height="115" /></a>That&#8217;s it for the day. We&#8217;ll code the WordPress loop in our next tutorial.</p> <img src="http://feeds.feedburner.com/~r/wpsmart/~4/voxhG6-CLPo" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.wpsmart.com/2010/coding-the-header-of-wordpress-theme/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://www.wpsmart.com/2010/coding-the-header-of-wordpress-theme/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=coding-the-header-of-wordpress-theme</feedburner:origLink></item> <item><title>WordPress Security Update 3.02</title><link>http://feedproxy.google.com/~r/wpsmart/~3/CVFglZiUGdA/</link> <comments>http://www.wpsmart.com/2010/wordpress-security-update-3-02/#comments</comments> <pubDate>Wed, 01 Dec 2010 00:28:24 +0000</pubDate> <dc:creator>Kaiser</dc:creator> <category><![CDATA[News]]></category><guid isPermaLink="false">http://www.wpsmart.com/?p=185</guid> <description><![CDATA[WordPress has released a security update for WordPress. WordPress 3.02 is a mandatory security update and can be downloaded from here. You can also update it automatically from your admin dashboard .]]></description> <content:encoded><![CDATA[<p>WordPress has released a security update for WordPress. WordPress 3.02 is a mandatory security update and can be downloaded from <a
href="http://wordpress.org/download/">here</a>. You can also update it automatically from your admin dashboard .</p> <img src="http://feeds.feedburner.com/~r/wpsmart/~4/CVFglZiUGdA" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.wpsmart.com/2010/wordpress-security-update-3-02/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.wpsmart.com/2010/wordpress-security-update-3-02/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=wordpress-security-update-3-02</feedburner:origLink></item> <item><title>Building Blocks of WordPress Theme</title><link>http://feedproxy.google.com/~r/wpsmart/~3/KmP6KNCuaqI/</link> <comments>http://www.wpsmart.com/2010/building-bocks-of-wordpress-theme/#comments</comments> <pubDate>Wed, 24 Nov 2010 19:12:30 +0000</pubDate> <dc:creator>Kaiser</dc:creator> <category><![CDATA[Theme Development]]></category><guid isPermaLink="false">http://www.wpsmart.com/?p=152</guid> <description><![CDATA[Today we&#8217;re going to begin building our WordPress Theme. I&#8217;m sure that there is a lot more basics that we haven&#8217;t covered yet but we&#8217;ll get to that later on. One of the best way to learn something is to &#8230; <a
href="http://www.wpsmart.com/2010/building-bocks-of-wordpress-theme/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Today we&#8217;re going to begin building our WordPress Theme. I&#8217;m sure that there is a lot more basics that we haven&#8217;t covered yet but we&#8217;ll get to that later on. One of the best way to learn something is to start doing it with your own hands.</p><p><span
id="more-152"></span></p><p>WordPress Theme Info</p><p><a
rel="attachment wp-att-153" href="http://www.wpsmart.com/2010/building-bocks-of-wordpress-theme/basic-2/"><img
class="aligncenter size-full wp-image-153" title="basic" src="http://wpsmart.s3.amazonaws.com/wp-content/pics/basic.gif" alt="WordPress Theme Info" width="385" height="611" /></a></p><p>When you upload a new theme to wp-content/themes folder WordPress immediately detects the theme and displays a thumbnail and some information about the theme. Where does that thumbnail and information come from? Well the text comes from the style.css and thumbnail from image file named screenshot.png or jpg.</p><h3>Style.css</h3><p>Style.css is one of the required files for any theme in WordPress. This file should begin with a simple comment block that will be used by WordPress to detect name and other information about your theme and display it in your WordPress Theme menu.<br
/> Add the code below to the top of your style.css and edit it as required.</p><pre name="code" class="css">
/*
Theme Name: WPSmart.com
Theme URI: http://www.wpsmart.com/
Description: Theme developed from scratch for WPsmart.com.
Author: WPSmart.com
Author URI: http://www.wpsmart.com
Version: 1.0
Tags: two columns, blog, fixed-width

*/
</pre><p>It&#8217;s pretty much self-explanatory. Add the name for your site, uri for your theme, little description, name of the author, version number if any and tags.</p><h3>Screenshot.png</h3><p>Take a screenshot of your theme and save it as screenshot.png. Resize it to 300&#215;225 or something smaller and put it in the root of theme folder.</p><h3>Index.php</h3><p>This file is one of the two required files for any WordPress theme (the other being style.css). We&#8217;re not going into the details of this file yet. Just create a blank index.php file.</p><h3>Theme Folder</h3><p>Create a new folder and name it according to the name of theme. Put all three files in it and upload it to wp-content/themes/.</p><p><a
rel="attachment wp-att-180" href="http://www.wpsmart.com/2010/building-bocks-of-wordpress-theme/themfolder/"><img
class="aligncenter size-full wp-image-180" title="themfolder" src="http://wpsmart.s3.amazonaws.com/wp-content/pics/themfolder.jpg" alt="WordPress Theme folder" width="204" height="110" /></a></p><p>Go to your WordPress administration and click on Appearance&gt;Themes and you will find your theme listed as shown below.<br
/> <a
rel="attachment wp-att-156" href="http://www.wpsmart.com/2010/building-bocks-of-wordpress-theme/wordpress_theme/"><img
class="aligncenter size-full wp-image-156" title="wordpress_theme" src="http://wpsmart.s3.amazonaws.com/wp-content/pics/wordpress_theme.jpg" alt="WordPress displaying info about theme" width="711" height="381" /></a></p><p>Don&#8217;t activate this theme as it&#8217;s blank!</p><p>We&#8217;ll begin designing our header in next tutorial.</p> <img src="http://feeds.feedburner.com/~r/wpsmart/~4/KmP6KNCuaqI" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.wpsmart.com/2010/building-bocks-of-wordpress-theme/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://www.wpsmart.com/2010/building-bocks-of-wordpress-theme/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=building-bocks-of-wordpress-theme</feedburner:origLink></item> <item><title>How to Add Pagination to Your Website – Tip</title><link>http://feedproxy.google.com/~r/wpsmart/~3/oGasVZ23zuM/</link> <comments>http://www.wpsmart.com/2010/how-to-add-pagination-to-your-wordpress-blog/#comments</comments> <pubDate>Mon, 15 Nov 2010 18:59:27 +0000</pubDate> <dc:creator>Kaiser</dc:creator> <category><![CDATA[WordPress Tips]]></category><guid isPermaLink="false">http://www.wpsmart.com/?p=122</guid> <description><![CDATA[According to Wikipedia &#8220;Pagination is the process of dividing web content and displaying it on separate pages&#8221;. Here are a few examples. How to One of the easiest and quickest way to add Pagination to your WordPress blog is to &#8230; <a
href="http://www.wpsmart.com/2010/how-to-add-pagination-to-your-wordpress-blog/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>According to <a
href="http://en.wikipedia.org/wiki/Pagination_%28web%29" target="_blank">Wikipedia </a>&#8220;Pagination is the process of dividing web content and displaying it on separate pages&#8221;.</p><p><span
id="more-122"></span></p><p>Here are a few examples.</p><p><a
href="http://www.wpsmart.com/2010/how-to-add-pagination-to-your-wordpress-blog/wordpress_pagination/" rel="attachment wp-att-123"><img
class="aligncenter size-full wp-image-123" title="WordPress Pagination" src="http://wpsmart.s3.amazonaws.com/wp-content/pics/wordpress_pagination.png" alt="Various examples of wordpress pagination" width="355" height="111" /></a></p><p><strong>How to</strong></p><p>One of the easiest and quickest way to add Pagination to your WordPress blog is to use a plugin and my personal favorite is <a
href="http://wordpress.org/extend/plugins/wp-pagenavi/" target="_blank">WP-PageNavi </a>. Download it and upload it your plugins folder or you can install it directly from within WordPress if your server supports it.</p><p>Installing it can vary from theme to theme. In WordPress default Twenty-Ten theme you need to find your <strong>loop.php</strong> file inside your twentyten folder and add the code below</p><pre class="brush:php">&lt;?php wp_pagenavi(); ?&gt;</pre><p>in place of the code below</p><pre class="brush:php">&lt;?php if (  $wp_query-&gt;max_num_pages &gt; 1 ) : ?&gt;
&lt;div id="nav-below" class="navigation"&gt;
&lt;div class="nav-previous"&gt;&lt;?php next_posts_link( __( '&lt;span class="meta-nav"&gt;←&lt;/span&gt; Older posts', 'twentyten' ) ); ?&gt;&lt;/div&gt;
&lt;div class="nav-next"&gt;&lt;?php previous_posts_link( __( 'Newer posts &lt;span class="meta-nav"&gt;→&lt;/span&gt;', 'twentyten' ) ); ?&gt;&lt;/div&gt;
&lt;/div&gt;&lt;!-- #nav-below --&gt;
&lt;?php endif; ?&gt;</pre><p>and you&#8217;re done.</p><p>Default settings for the plugin work just fine though you can customize them to your taste. To add your own css styling you need to edit the <strong>pagenavi-css.css</strong> . You can change the &#8220;Number Of Pages To Show&#8221; and various other options by going to Settings&gt;PageNavi.</p><p>&nbsp;</p><p><span
style="color: #ff0000;"><strong>Update for WordPress 3.2 theme Twenty-Eleven</strong></span></p><p>WordPress 3.2 came with a brand new theme called twenty eleven. The structure of theme is very different from twenty-ten. To add wp-pagenavi to twenty-eleven you need to edit the file called <strong>index.php</strong>. Find the code below and replace it with the wp-pagenavi code as shown above.</p><pre class="brush:php">&lt;?php twentyeleven_content_nav( 'nav-below' ); ?&gt;</pre><img src="http://feeds.feedburner.com/~r/wpsmart/~4/oGasVZ23zuM" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.wpsmart.com/2010/how-to-add-pagination-to-your-wordpress-blog/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.wpsmart.com/2010/how-to-add-pagination-to-your-wordpress-blog/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-add-pagination-to-your-wordpress-blog</feedburner:origLink></item> <item><title>How to Setup Multisite in WordPress 3.0+</title><link>http://feedproxy.google.com/~r/wpsmart/~3/HPbWq81osQI/</link> <comments>http://www.wpsmart.com/2010/how-to-setup-multisite-in-wordpress-3-0/#comments</comments> <pubDate>Thu, 11 Nov 2010 16:13:35 +0000</pubDate> <dc:creator>Kaiser</dc:creator> <category><![CDATA[Tutorials]]></category><guid isPermaLink="false">http://www.wpsmart.com/?p=67</guid> <description><![CDATA[WordPress Multisite or what was once known as WordPress MU is basically a way to create a network of sites or blogs from a single installation of WordPress. With many people now running more than a few dozen blogs or &#8230; <a
href="http://www.wpsmart.com/2010/how-to-setup-multisite-in-wordpress-3-0/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>WordPress Multisite or what was once known as WordPress MU is basically a way to create a network of sites or blogs from a single installation of WordPress. With many people now running more than a few dozen blogs or sites, It becomes very difficult and time consuming to manage, update and keep your sites secure.</p><p><span
id="more-67"></span></p><p>With WordPress Multisite you can now launch new sites or blogs from within the administration panel of your existing site. No longer you need to go through all the hassle of creating new databases , upload wordpress core files, upload or install the same plugins over and over again. With WordPress MS you can now launch new sites or blogs with a click of button.</p><p><strong>Benefits of WordPress MS</strong></p><ul><li><span
style="color: #000000;">Launch new sites or blogs from a single </span>installation<span
style="color: #000000;"> of </span>WordPress</li><li><span
style="color: #000000;">No need to create new databases every time you launch a site</span></li><li><span
style="color: #000000;">Manage all your installations from WordPress Administration Panel</span></li><li><span
style="color: #000000;">Chose between sub-domain or sub-directory as the destination of your new installations</span></li></ul><p><strong>What You&#8217;ll Need</strong></p><ul><li><span
style="color: #000000;">Preferably a Linux based VPS or dedicated server as WordPress MS is not </span><em>recommended</em><span
style="color: #000000;"><em> </em>for shared hosting environment</span></li><li><span
style="color: #000000;">Basic knowledge of Linux/Unix is recommended</span></li><li><span
style="color: #000000;">WordPress 3.0+ </span></li></ul><p>If you&#8217;re running Windows or if you want to test this on your localhost you may have trouble getting WordPress Multisite to work properly.</p><p><strong>Step 1:</strong></p><p>First of all, make sure that you have backup of your data and WordPress core files. Disable all plugins on your site, you can re-enable them after you&#8217;re done with the installation. WordPress will also give you a warning to deactiavte your plugins.</p><p><a
rel="attachment wp-att-75" href="http://www.wpsmart.com/2010/how-to-setup-multisite-in-wordpress-3-0/multisite-plugins/"><img
class="aligncenter size-full wp-image-75" title="WordPress Multisite Plugins error" src="http://wpsmart.s3.amazonaws.com/wp-content/pics/multisite-plugins.png" alt="WordPress error to deactivate your plugins" width="539" height="68" /></a><strong>Step 2:</strong></p><p>To enable WordPress Multisite in WordPress 3.0+ you need to add a small line of code to your wp-config.php site. Add the code below in your wp-config.php site just above the line &#8220;That&#8217;s all, stop editing! Happy blogging&#8221;</p><pre class="brush:php">define('WP_ALLOW_MULTISITE', true);</pre><p><a
rel="attachment wp-att-80" href="http://www.wpsmart.com/2010/how-to-setup-multisite-in-wordpress-3-0/multisite-code/"><img
class="aligncenter size-full wp-image-80" title="Code to enable Multisite feature in WordPress 3.0+" src="http://wpsmart.s3.amazonaws.com/wp-content/pics/multisite-code.png" alt="Add the following code to your wp-config.php file to enable WordPress Multisite" width="339" height="65" /></a>Now upload the edited wp-config.php back to your site and you&#8217;ll see a new link &#8220;Network&#8221;appear under your Tools Menu as shown below</p><p><a
rel="attachment wp-att-81" href="http://www.wpsmart.com/2010/how-to-setup-multisite-in-wordpress-3-0/menu/"><img
class="aligncenter size-full wp-image-81" title="Multisite Menu" src="http://wpsmart.s3.amazonaws.com/wp-content/pics/menu.png" alt="New link network under WordPress tools menu" width="143" height="115" /></a></p><p><strong>Step 3:</strong></p><p>Now go to your Network link and you select either sub-domains or sub-directories for new sites in your Network as shown below.</p><p><a
rel="attachment wp-att-82" href="http://www.wpsmart.com/2010/how-to-setup-multisite-in-wordpress-3-0/multisite-settings/"><img
class="aligncenter size-full wp-image-82" title="Multisite Network Install" src="http://wpsmart.s3.amazonaws.com/wp-content/pics/multisite-settings.png" alt="WordPress 3.0 Multisite Network Install options" width="711" height="419" /></a>It&#8217;s pretty much self-explanatory. Sub-domains are like site1.mainsite.com  and sub directories are like www.mainsite.com/site1 and so on.</p><p><strong>Site1 </strong>is basically the name of your new site that you will decide yourself.</p><p>I will use Sub-directories for this tutorial as it&#8217;s easier to install. If you want sub-domain then follow the instructions here <a
href="http://codex.wordpress.org/Create_A_Network" target="_blank">WordPress Create a Network</a>.</p><p>Once you have made your choice, fill out the details and click install.</p><p><strong>Step 4:</strong></p><p>Once the installation is done, WordPress will generate a few lines of code for you.</p><p>One will go to to your <strong>wp-config.php</strong> file and other will go to your <strong>.htaccess</strong> file.</p><p>You will also need to create a new directory named &#8220;<strong>blogs.dir</strong>&#8221; inside your wp-content directory and make sure it&#8217;s writable if it&#8217;s not by default.</p><p>The code for your wp-config.php will go above the line &#8220;That&#8217;s all, stop editing! Happy blogging&#8221; just like we did in step 2. Depending on your configuration you may need to create a new .htaccess file, add the generated code and upload it your site root. If you&#8217;re on windows, just create a blank text file, add the code and upload it your site root. Rename it .htaccess from your ftp program.</p><p><strong>Step 5:</strong></p><p>Now sign-out and sign-in  again to your main site administration panel and you will find a shiny new Super Admin Menu just above the Dashboard menu as shown below.</p><p><a
rel="attachment wp-att-89" href="http://www.wpsmart.com/2010/how-to-setup-multisite-in-wordpress-3-0/multisite-menu/"><img
class="aligncenter size-full wp-image-89" title="Super Admin Meni" src="http://wpsmart.s3.amazonaws.com/wp-content/pics/multisite-menu.png" alt="WordPress Multisite Super Admin Menu" width="152" height="164" /></a>To create a new site click on Add New. Give your new site a name, Title and enter the email address. Click Add site.</p><p><a
rel="attachment wp-att-90" href="http://www.wpsmart.com/2010/how-to-setup-multisite-in-wordpress-3-0/addnewsite/"><img
class="aligncenter size-full wp-image-90" title="Add New Site" src="http://wpsmart.s3.amazonaws.com/wp-content/pics/addnewsite.png" alt="WordPress Multisite add new site" width="575" height="298" /></a></p><p><strong>Step 6:</strong></p><p>Voila! Your new site will be created instantly and given an ID.</p><p><a
rel="attachment wp-att-93" href="http://www.wpsmart.com/2010/how-to-setup-multisite-in-wordpress-3-0/multisite-sites/"><img
class="aligncenter size-full wp-image-93" title="MultiSites sites" src="http://wpsmart.s3.amazonaws.com/wp-content/pics/multisite-sites.png" alt="List of your sites" width="508" height="250" /></a>Click on visit to go to your new blog.</p><p>WordPress Multisite is a very powerful feature and there&#8217;s a lot more you can do with it. Your new Super Admin is full of options and settings that you can change as you wish. We&#8217;ll cover those options in future tutorials.</p><p>Another feature that many people may want is to map your new site or give your new site a fully qualified domain. That&#8217;s instead of site1.mainsite.com or mainsite.com/site1 you may want it to be www.site1.com. We can do that with a plugin called WordPress Mu Domain Mapping. We&#8217;ll also cover that in our future tutorials.</p><p>Subscribe to Wpsmart.com rss feed and give us your feedback via comments.</p> <img src="http://feeds.feedburner.com/~r/wpsmart/~4/HPbWq81osQI" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.wpsmart.com/2010/how-to-setup-multisite-in-wordpress-3-0/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.wpsmart.com/2010/how-to-setup-multisite-in-wordpress-3-0/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-setup-multisite-in-wordpress-3-0</feedburner:origLink></item> <item><title>XML Sitemap Plugin for WordPress – Tip</title><link>http://feedproxy.google.com/~r/wpsmart/~3/h03BjpAmEec/</link> <comments>http://www.wpsmart.com/2010/xml-sitemap-plugin-for-wordpress-tip/#comments</comments> <pubDate>Mon, 08 Nov 2010 21:37:16 +0000</pubDate> <dc:creator>Kaiser</dc:creator> <category><![CDATA[WordPress Tips]]></category> <category><![CDATA[Tips]]></category><guid isPermaLink="false">http://www.wpsmart.com/?p=53</guid> <description><![CDATA[I just installed XML &#8211; Sitemap Plugin for my blog. It&#8217;s one of the first things you should do after installing wordpress. All you need to do is to upload it to your plugins folder and activate it. Depending on &#8230; <a
href="http://www.wpsmart.com/2010/xml-sitemap-plugin-for-wordpress-tip/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I just installed <a
href="http://wordpress.org/extend/plugins/google-sitemap-generator/" target="_blank">XML &#8211; Sitemap</a> Plugin for my blog. It&#8217;s one of the first things you should do after installing wordpress.</p><p><span
id="more-53"></span></p><p>All you need to do is to upload it to your plugins folder and activate it. Depending on your configuration you may need to chmod 777 your blog root directory which is not a  good idea  from security point of view So, I just created two empty files named sitemap.xml and sitemap.xml.gz and uploaded them to blog root. The plugin automatically notifies Google, Bing and other search engines about updates and our sitemap.</p><p>You don&#8217;t necessarily  need to create both files but I chose to create both.</p><p>It also has a post priority feature</p><p><a
rel="attachment wp-att-54" href="http://www.wpsmart.com/2010/xml-sitemap-plugin-for-wordpress-tip/priorityt/"><img
class="aligncenter size-full wp-image-54" title="XML Sitemap Post Priority" src="http://wpsmart.s3.amazonaws.com/wp-content/pics/priorityt.gif" alt="XML-Sitemap Post priority" width="421" height="189" /></a>By default it is set to Comment count to determine the priority of post. I&#8217;m not sure just how big of an impact (if any) it may have on your page rank in search results but my guess is it will be minimum. Juts leave it to default!</p><p>There are a lot of other options like you can exclude categories and pages from your sitemap if you chose to do so.</p><p>Bottom line is it&#8217;s good to have Sitemap for seo purposes and this plugin does a fantastic job of creating a nice sitemap for your site.</p> <img src="http://feeds.feedburner.com/~r/wpsmart/~4/h03BjpAmEec" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.wpsmart.com/2010/xml-sitemap-plugin-for-wordpress-tip/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.wpsmart.com/2010/xml-sitemap-plugin-for-wordpress-tip/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=xml-sitemap-plugin-for-wordpress-tip</feedburner:origLink></item> </channel> </rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Object Caching 552/669 objects using disk: basic
Content Delivery Network via Amazon Web Services: S3: wpsmart.s3.amazonaws.com

Served from: www.wpsmart.com @ 2012-02-22 11:46:08 -->

