<?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>33dots &#187; Wordpress</title>
	<atom:link href="http://www.33dots.com/index.php/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.33dots.com</link>
	<description></description>
	<lastBuildDate>Wed, 12 Oct 2011 17:07:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Displaying posts in a category as a page in wordpress</title>
		<link>http://www.33dots.com/index.php/wordpress/displaying-posts-in-a-category-as-a-page-in-wordpress.html</link>
		<comments>http://www.33dots.com/index.php/wordpress/displaying-posts-in-a-category-as-a-page-in-wordpress.html#comments</comments>
		<pubDate>Thu, 06 Aug 2009 10:32:20 +0000</pubDate>
		<dc:creator>tony</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[category as page]]></category>
		<category><![CDATA[page template]]></category>

		<guid isPermaLink="false">http://www.33dots.com/?p=143</guid>
		<description><![CDATA[In this site the Life page only displays the posts in the category Life.
I did this in a manual way by creating a Page Template for the Life page. This gives you more control. The problem with this approach is that you have to do it again for a new theme.
In wordpress, individual pages can [...]]]></description>
			<content:encoded><![CDATA[<p>In this site the <a title="Life page" href="/index.php/life" target="_self">Life</a> page only displays the posts in the category <a title="Category page of Life" href="/index.php/category/life" target="_self">Life</a>.<br />
I did this in a manual way by creating a Page Template for the Life page. This gives you more control. The problem with this approach is that you have to do it again for a new theme.</p>
<p>In wordpress, individual pages can be set to use a specific custom Page Template (a PHP template file, e.g., <em>life.php</em>) that we create within our Theme. The custom Page Template can be assigned while creating a new page. This new Page Template will then override the default <em>page.php</em> Page Template in the Theme.<br />
When loading a page, wordpress looks first for the assigned Page template, then the <em>page.php</em> and finally the <em>index.php</em>. The first one it finds will be used to display that Page. The template pages are situated in the theme&#8217;s directory which is at <em>wp-content/themes/your-theme</em></p>
<p>In our case we need a Page Template that will be similar to the home page but displays only the posts in the required category.<br />
So we will base our custom Page Template on index.php which is the Page Template of the home page.</p>
<p>We make a copy of  the <em>index.php</em> with the name <em>mypage.php</em> (or <em>anything.php</em>)</p>
<p>Add the following code to the top of it so that wordpress understands that it is a Page Template and identify its Template Name. This name will be displayed in the theme editor page.</p>
<pre>&lt;?php
/*
Template Name: MyPage
*/
?&gt;</pre>
<p>Now, we add the filter to display only the required category. This should be added just after the above Template Name code</p>
<pre>&lt;?php
if (is_home()) {
query_posts($query_string."&amp;cat=3");
}
?&gt;</pre>
<p>In this code we display only category with id 3. The <em>category id</em> can be found out from the wordpress <em>Edit Category</em> pages by mouse hovering the required category and its id will be shown in the browser&#8217;s status bar.<br />
Now to display more than one category use some thing like this<br />
<code>query_posts($query_string."&amp;cat=2,6,17,38");</code></p>
<p>Create a blank page and assign this custom template to it. [Look for a drop-down labeled "<em>Page Template</em>" towards the bottom]</p>
<p>Thats all!</p>
<p>For more detailed information on Page Templates, visit this <a title="Page Templates in wordpress codex site" href="http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates" target="_self">wordpress codex page</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.33dots.com/index.php/wordpress/displaying-posts-in-a-category-as-a-page-in-wordpress.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Excluding a category from the front page in Wordpress</title>
		<link>http://www.33dots.com/index.php/wordpress/excluding-a-category-from-the-front-page-in-wordpress.html</link>
		<comments>http://www.33dots.com/index.php/wordpress/excluding-a-category-from-the-front-page-in-wordpress.html#comments</comments>
		<pubDate>Thu, 06 Aug 2009 09:42:58 +0000</pubDate>
		<dc:creator>tony</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[query_posts]]></category>
		<category><![CDATA[wordpress category]]></category>

		<guid isPermaLink="false">http://www.33dots.com/?p=129</guid>
		<description><![CDATA[This is a very well known trick where we use the query_posts() template tag to control which posts to show up. The code has to be placed above the Loop in the index.php template file.
&#60;?php
if (is_home()) {
query_posts("cat=-3");
}
?&#62;
The code checks whether we are in home page and if it is, it excludes the category with id [...]]]></description>
			<content:encoded><![CDATA[<p>This is a very well known trick where we use the <code>query_posts()</code> template tag to control which posts to show up. The code has to be placed above the <a title="Description of the Loop in wordpress site" href="http://codex.wordpress.org/The_Loop" target="_self"><em>Loop</em></a> in the <em>index.php</em> template file.</p>
<pre>&lt;?php
if (is_home()) {
query_posts("cat=-3");
}
?&gt;</pre>
<p>The code checks whether we are in home page and if it is, it excludes the category with id 3 from displaying in it. The <em>category id</em> can be found out from the wordpres&#8217;s <em>Edit Category</em> pages by mouse hovering the required category and its id will be shown in the browser&#8217;s status bar.<br />
More than one category could be excluded by using a code like this, <code>query_posts("cat=-2,-6,-8")</code></p>
<p>However, i recently noticed that it breaks the pagination, and so the <em>next</em> and <em>previous </em>page links at the bottom only shows the same home page. Pagination is the feature by which we split the home page into pages based on the max number of posts that can be displayed in the page.</p>
<p>The problem was because, the call to <code>query_posts()</code> causes the <code>wp_query</code> object to generate a new SQL query using our parameters and ignores the other parameters it receives via the URL (page number etc).</p>
<p>The proper way is to send the parameters in the URL together with our parameters and this can be done by including the variable <code>$query_string</code> in the call to <code>query_posts()</code>. When doing this way the quoted portion of the argument must begin with an ampersand (&amp;).<br />
The code now looks like this</p>
<pre>&lt;?php
if (is_home()) {
query_posts($query_string."&amp;cat=-3");
}
?&gt;</pre>
<p>Another technique is to use a code like this inside the Loop. <code><br />
&lt;?php if (in_category('3') &amp;&amp; is_home() ) continue; ?&gt;</code><br />
I&#8217;ve not tested this code myself, but looking at it i think it should work fine.</p>
<p>For a detailed information on what the <code>query_posts()</code> is capable of doing, visit this <a title="Wordpress codex page on query_posts()" href="http://codex.wordpress.org/Template_Tags/query_posts" target="_self">wordpress codex page</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.33dots.com/index.php/wordpress/excluding-a-category-from-the-front-page-in-wordpress.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Things to take care when starting a new personal blog/website</title>
		<link>http://www.33dots.com/index.php/general/things-to-take-care-when-starting-a-new-personal-blog-or-website.html</link>
		<comments>http://www.33dots.com/index.php/general/things-to-take-care-when-starting-a-new-personal-blog-or-website.html#comments</comments>
		<pubDate>Tue, 07 Apr 2009 06:14:52 +0000</pubDate>
		<dc:creator>tony</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[good domain name]]></category>
		<category><![CDATA[good webhost]]></category>
		<category><![CDATA[new blog]]></category>
		<category><![CDATA[new website]]></category>
		<category><![CDATA[search engine optimization]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[traffic statistics]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.33dots.com/?p=52</guid>
		<description><![CDATA[I just setup my first blog/website. These are a some of the steps that I took in the process of creating this blog. This is not an exhaustive list, but only the areas that I touched.

1. Find a good domain name. If your main audience is from search engines, and if you do not have [...]]]></description>
			<content:encoded><![CDATA[<p>I just setup my first blog/website. These are a some of the steps that I took in the process of creating this blog. This is not an exhaustive list, but only the areas that I touched.<br />
<br />
<strong>1. </strong>Find a good domain name. If your main audience is from search engines, and if you do not have any country specific audience, the <em>.com .org </em>or <em>.net </em>will give you better search engine position. However, if your audience is mainly from your country then choose the extension of that country. [For example<strong>:</strong>  &nbsp;<em>.co.in</em> sites have prominence over others in <em>google.co.in</em>]<br />
The URL can have numbers, alphabets and &#8216;-&#8217;[hyphen]. Make it short, meaningful [not like mine <img src='http://www.33dots.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ] and simple.<br />
<br />
<strong>2.</strong> Find a good host. Look for decent bandwidth, diskspace, number of databases allowed, POP/SMTP email accounts, FTP support, control panel like cPanel etc. Do not go behind offers like unlimited diskspace/bandwidth etc. I just made that mistake and is paying for that. If you choose a Linux based host[like mine], make sure they support <em>.htaccess</em> files, and Apache <em>mod_rewrite</em>. These are required to create &#8216;<a title="Pretty links" href="http://codex.wordpress.org/Introduction_to_Blogging#Pretty_Permalinks" target="_blank">pretty links</a>&#8216;. If your host provides a demo account, try it out for sure.<br />
<br />
<strong>3.</strong> Choose a good Content Management software. I use <a title="Wordpress website" href="http://wordpress.org/ " target="_blank">Wordpress </a>for my blog and I highly recommend it. Wordpress is the best if you are thinking of a blog.<br />
<br />
<strong>4.</strong> Use an FTP client to upload/download all your data to/from the webserver. I Use <a title="Download Filezilla here" href="http://filezilla-project.org/download.php" target="_blank">Fillezilla</a>.<br />
<br />
<strong>5.</strong> Carefully choose a good set of passwords. It should be atleast 8 characters long and a mix of letters, alphabets and symbols. Use different passwords for ftp, email, database etc. Note it down in paper.<br />
<br />
<strong>6.</strong> Have a basic understanding of search engine optimization(SEO) before adding posts. These are simple things like providing a good title for all the pages, adding <em>meta description</em> and <em>meta keyword</em> tags for all the pages, providing <em>title </em>attribute for your links and adding <em>alt </em>tag for your images.<br />
<br />
<strong>7.</strong> Get some idea about traffic statistics tools. Your webserver may be providing one, but that may not be good. I use the stats analyzer of Wordpress. Some others include <a title="Google analytics site" href="http://www.google.com/analytics/" target="_blank">Google analytics</a>, <a title="Awstats site" href="http://awstats.sourceforge.net/" target="_blank">Awstats</a>, etc.<br />
<br />
<strong>8.</strong> Turn Off directory listing if your webserver supports it. If not, add a blank <em>index.html</em> page to all the directories which are listed.<br />
<br />
<strong>9.</strong> Think of a back up at least once in a week.<br /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.33dots.com/index.php/general/things-to-take-care-when-starting-a-new-personal-blog-or-website.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

