<?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>WordPress Freelancer &#187; WordPress</title>
	<atom:link href="http://wplancer.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://wplancer.com</link>
	<description>WordPress Freelance Designer &#38; Developer</description>
	<lastBuildDate>Tue, 13 Dec 2011 20:27:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Limit Content in WordPress</title>
		<link>http://wplancer.com/how-to-limit-content-in-wordpress/</link>
		<comments>http://wplancer.com/how-to-limit-content-in-wordpress/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 14:31:14 +0000</pubDate>
		<dc:creator>BANAGO</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wplancer.com/?p=905</guid>
		<description><![CDATA[Have you seen those cool magazine style WordPress themes around this days? They are just cool. You might have noticed that they sometimes show a few words of the post, this is for sure not the default WordPress excerpt showing that because the default excerpt length is set to 55 words and manually excerpting every post would be a great time consumer. So, what are this guys putting together to get that cool effect on their sites by controlling the length of the content?]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin: 15px 10px 0 0;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwplancer.com%2Fhow-to-limit-content-in-wordpress%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwplancer.com%2Fhow-to-limit-content-in-wordpress%2F&amp;source=banago&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://www.wplancer.com/wp-content/wordpress-limit-content.png"><img class="size-medium wp-image-963 alignright" title="wordpress-limit-content" src="http://www.wplancer.com/wp-content/wordpress-limit-content-250x250.png" alt="" width="250" height="250" /></a>Have you seen those cool magazine style WordPress themes around this days? They are just cool. You might have noticed that they sometimes show a few words of the post, this is for sure not the default <a title="WordPress Excerpt" href="http://codex.wordpress.org/Template_Tags/the_excerpt">WordPress excerpt</a> showing that because the default excerpt length is set to 55 words and manually excerpting every post would be a great time consumer. So, what are this guys putting together to get that cool effect on their sites by controlling the length of the content? Well, as a <a title="WordPress Freelancer" href="http://www.wplancer.com/wordpress-freelance-services/">WordPress freelancer</a>, I have been needing that feature myself and today I&#8217;m going to share with you how to have that feature on your site.</p>
<p>There are three different approaches to limit your excerpt or content in WordPress that you must know:</p>
<h3>1. WordPress&#8217;s Approach</h3>
<p>WordPress developers have provided us lately with a tool to limit the excerpt. I do not use it myself as I&#8217;m more conformable with another approach as I find this a little limited. To change excerpt length using the default WordPress excerpt limit approach you have to use the <a title="Plugin API/Filter Reference/excerpt length" href="http://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_length">excerpt_length</a> filter and add the following code to <em>functions.php</em> file in your theme:</p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
2
3
4
5
6
7
</pre>
<pre><span class="php"><span class="php-function">function</span> new_excerpt_length<span class="php-brackets">(</span><span class="php-var">$length</span><span class="php-brackets">)</span> <span class="php-brackets">{</span>
<span class="php-keyword">return</span> <span class="php-number">2</span><span class="php-number">0</span>;
<span class="php-brackets">}</span>
add_filter<span class="php-brackets">(</span><span class="php-string">'excerpt_length'</span>, <span class="php-string">'new_excerpt_length'</span><span class="php-brackets">)</span>;</span></pre>
</div>
<p>Every time you will use <em>the_excerpt();</em> on your code it will output an 20-word text string for you. Right now you&#8217;ve got a question, don&#8217;t you? I know, I had it too. The question is: What if I want to use the 20-word excerpt in some places on my theme, but still be able to use the 55-word one? Or just have two or three different-length exerts to use on my theme? Well, if that is the case, the default approach is not for you, so continue reading.</p>
<h3>2. StudioPress&#8217;s Approach</h3>
<p>I don&#8217;t really know who came up with this approach originally, but I know that the guys over at <a title="StudioPress" href="http://www.studiopress.com">StudioPress</a> use it on their themes. This function is called <em>the_content_limit().</em> This is how the code that will go into the <em>functions.php</em> file looks like &#8211; lengthy huh?</p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
</pre>
<pre><span class="php"><span class="php-function">function</span> the_content_limit<span class="php-brackets">(</span><span class="php-var">$max_char</span>, <span class="php-var">$more_link_text</span> <span class="php-operator">=</span> <span class="php-string">'(more...)'</span>, <span class="php-var">$stripteaser</span> <span class="php-operator">=</span> <span class="php-number">0</span>, <span class="php-var">$more_file</span> <span class="php-operator">=</span> <span class="php-string">''</span><span class="php-brackets">)</span> <span class="php-brackets">{</span>

<span class="php-var">$content</span> <span class="php-operator">=</span> get_the_content<span class="php-brackets">(</span><span class="php-var">$more_link_text</span>, <span class="php-var">$stripteaser</span>, <span class="php-var">$more_file</span><span class="php-brackets">)</span>;

<span class="php-var">$content</span> <span class="php-operator">=</span> apply_filters<span class="php-brackets">(</span><span class="php-string">'the_content'</span>, <span class="php-var">$content</span><span class="php-brackets">)</span>;

<span class="php-var">$content</span> <span class="php-operator">=</span> <span class="php-function">str_replace</span><span class="php-brackets">(</span><span class="php-string">']]&gt;'</span>, <span class="php-string">']]&gt;'</span>, <span class="php-var">$content</span><span class="php-brackets">)</span>;

<span class="php-var">$content</span> <span class="php-operator">=</span> <span class="php-function">strip_tags</span><span class="php-brackets">(</span><span class="php-var">$content</span><span class="php-brackets">)</span>;

<span class="php-keyword">if</span> <span class="php-brackets">(</span><span class="php-function">strlen</span><span class="php-brackets">(</span><span class="php-var">$_GET</span><span class="php-brackets">[</span><span class="php-string">'p'</span><span class="php-brackets">]</span><span class="php-brackets">)</span> <span class="php-operator">&gt;</span> <span class="php-number">0</span><span class="php-brackets">)</span> <span class="php-brackets">{</span>

<span class="php-keyword">echo</span> <span class="php-string">&quot;

&quot;</span>;

<span class="php-keyword">echo</span> <span class="php-var">$content</span>;

<span class="php-keyword">echo</span> <span class="php-string">&quot; &lt;a href=&quot;</span><span class="php-string">&quot;;&lt;/p&gt; &lt;p&gt;      the_permalink();&lt;/p&gt; &lt;p&gt;      echo &quot;</span><span class="php-string">&quot;&gt;&quot;</span><span class="php-operator">.</span><span class="php-string">&quot;Read More →&lt;/a&gt;&quot;</span>;

<span class="php-keyword">echo</span> <span class="php-string">&quot;

&quot;</span>;

<span class="php-brackets">}</span>

<span class="php-keyword">else</span> <span class="php-keyword">if</span> <span class="php-brackets">(</span><span class="php-brackets">(</span><span class="php-function">strlen</span><span class="php-brackets">(</span><span class="php-var">$content</span><span class="php-brackets">)</span><span class="php-operator">&gt;</span><span class="php-var">$max_char</span><span class="php-brackets">)</span> <span class="php-operator">&amp;</span><span class="php-operator">&amp;</span> <span class="php-brackets">(</span><span class="php-var">$espacio</span> <span class="php-operator">=</span> <span class="php-function">strpos</span><span class="php-brackets">(</span><span class="php-var">$content</span>, <span class="php-string">&quot; &quot;</span>, <span class="php-var">$max_char</span> <span class="php-brackets">)</span><span class="php-brackets">)</span><span class="php-brackets">)</span> <span class="php-brackets">{</span>

<span class="php-var">$content</span> <span class="php-operator">=</span> <span class="php-function">substr</span><span class="php-brackets">(</span><span class="php-var">$content</span>, <span class="php-number">0</span>, <span class="php-var">$espacio</span><span class="php-brackets">)</span>;

<span class="php-var">$content</span> <span class="php-operator">=</span> <span class="php-var">$content</span>;

<span class="php-keyword">echo</span> <span class="php-string">&quot;

&quot;</span>;

<span class="php-keyword">echo</span> <span class="php-var">$content</span>;

<span class="php-keyword">echo</span> <span class="php-string">&quot;...&quot;</span>;

<span class="php-keyword">echo</span> <span class="php-string">&quot; &lt;a href=&quot;</span><span class="php-string">&quot;;&lt;/p&gt; &lt;p&gt;        the_permalink();&lt;/p&gt; &lt;p&gt;        echo &quot;</span><span class="php-string">&quot;&gt;&quot;</span><span class="php-operator">.</span><span class="php-var">$more_link_text</span><span class="php-operator">.</span><span class="php-string">&quot;&lt;/a&gt;&quot;</span>;

<span class="php-keyword">echo</span> <span class="php-string">&quot;

&quot;</span>;

<span class="php-brackets">}</span>

<span class="php-keyword">else</span> <span class="php-brackets">{</span>

<span class="php-keyword">echo</span> <span class="php-string">&quot;

&quot;</span>;

<span class="php-keyword">echo</span> <span class="php-var">$content</span>;

<span class="php-keyword">echo</span> <span class="php-string">&quot; &lt;a href=&quot;</span><span class="php-string">&quot;;&lt;/p&gt; &lt;p&gt;      the_permalink();&lt;/p&gt; &lt;p&gt;      echo &quot;</span><span class="php-string">&quot;&gt;&quot;</span><span class="php-operator">.</span><span class="php-string">&quot;Read More →&lt;/a&gt;&quot;</span>;

<span class="php-keyword">echo</span> <span class="php-string">&quot;

&quot;</span>;

<span class="php-brackets">}</span>

<span class="php-brackets">}</span></span></pre>
</div>
<p>Now we have to call that function because, off course, we are not going to use the default <em>the_excerpt();</em> function. Here:</p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
</pre>
<pre><span class="php"><span class="php-script-tag">&lt;?php</span> the_content_limit<span class="php-brackets">(</span><span class="php-number">2</span><span class="php-number">0</span>, <span class="php-string">&quot;[Read more]&quot;</span><span class="php-brackets">)</span>; <span class="php-script-tag">?&gt;<span class="html"></span></span></span></pre>
</div>
<p>Pretty simple to use and offers you the possibility to auto-generate a <em>Read More &#8230; </em>of you choice.</p>
<h3>C.bavota&#8217;s Apprach</h3>
<p>C.bacota &#8211; I don&#8217;t know his real name &#8211; has produced a couple of great code snippets to limit the content for both <em>the_content()</em> and <em>the_excerpt()</em>. As you may already know, <em>the_excerpt()</em> gets 55 words from <em>the_content()</em> but get rids of all the HTML tags on it, be it links, images or whatever. So, this guy produced a script that allows you to choose to use the text-only version or the html-rich version to limitedly display. I find this functions really cool and easy to use and I have been using them ever since they were produced. This is how the block of code that goes into <em>functions.php</em> looks like:</p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
</pre>
<pre><span class="php"><span class="php-comment">// Limit the content to certain number of words.
</span>
<span class="php-function">function</span> excerpt<span class="php-brackets">(</span><span class="php-var">$num</span><span class="php-brackets">)</span> <span class="php-brackets">{</span>
<span class="php-var">$limit</span> <span class="php-operator">=</span> <span class="php-var">$num</span><span class="php-operator">+</span><span class="php-number">1</span>;
<span class="php-var">$excerpt</span> <span class="php-operator">=</span> <span class="php-function">explode</span><span class="php-brackets">(</span><span class="php-string">' '</span>, get_the_excerpt<span class="php-brackets">(</span><span class="php-brackets">)</span>, <span class="php-var">$limit</span><span class="php-brackets">)</span>;
<span class="php-function">array_pop</span><span class="php-brackets">(</span><span class="php-var">$excerpt</span><span class="php-brackets">)</span>;
<span class="php-var">$excerpt</span> <span class="php-operator">=</span> <span class="php-function">implode</span><span class="php-brackets">(</span><span class="php-string">&quot; &quot;</span>,<span class="php-var">$excerpt</span><span class="php-brackets">)</span><span class="php-operator">.</span><span class="php-string">&quot;...&quot;</span>;
<span class="php-keyword">echo</span> <span class="php-var">$excerpt</span>;
<span class="php-brackets">}</span>
<span class="php-comment">// Limit the content to certain number of words.
</span>
<span class="php-function">function</span> content<span class="php-brackets">(</span><span class="php-var">$num</span><span class="php-brackets">)</span> <span class="php-brackets">{</span>
<span class="php-var">$limit</span> <span class="php-operator">=</span> <span class="php-var">$num</span><span class="php-operator">+</span><span class="php-number">1</span>;
<span class="php-var">$content</span> <span class="php-operator">=</span> <span class="php-function">explode</span><span class="php-brackets">(</span><span class="php-string">' '</span>, get_the_content<span class="php-brackets">(</span><span class="php-brackets">)</span>, <span class="php-var">$limit</span><span class="php-brackets">)</span>;
<span class="php-function">array_pop</span><span class="php-brackets">(</span><span class="php-var">$content</span><span class="php-brackets">)</span>;
<span class="php-var">$content</span> <span class="php-operator">=</span> <span class="php-function">implode</span><span class="php-brackets">(</span><span class="php-string">&quot; &quot;</span>,<span class="php-var">$content</span><span class="php-brackets">)</span><span class="php-operator">.</span><span class="php-string">&quot;...&quot;</span>;
<span class="php-keyword">echo</span> <span class="php-var">$content</span>;
<span class="php-brackets">}</span></span></pre>
</div>
<p>The above code is quite cool, but has two limitation: The first block of code, will not allow you to have a custom excerpt longer than 55 words, the same as <em>the_excerpt()</em> does, and the second one will bump image into your shorten content if you are using images in the original one. However, Mr. C.Basoda eventually thought about his and <a title="Limit Content or Excerpt" href="http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/">produced later a revised version</a> of the code that will allow you to use more than 55 words and not get images on the wrong place there. Here is the revised code:</p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
</pre>
<pre><span class="php"><span class="php-function">function</span> excerpt<span class="php-brackets">(</span><span class="php-var">$limit</span><span class="php-brackets">)</span> <span class="php-brackets">{</span>
<span class="php-var">$excerpt</span> <span class="php-operator">=</span> <span class="php-function">explode</span><span class="php-brackets">(</span><span class="php-string">' '</span>, get_the_excerpt<span class="php-brackets">(</span><span class="php-brackets">)</span>, <span class="php-var">$limit</span><span class="php-brackets">)</span>;
<span class="php-keyword">if</span> <span class="php-brackets">(</span><span class="php-function">count</span><span class="php-brackets">(</span><span class="php-var">$excerpt</span><span class="php-brackets">)</span><span class="php-operator">&amp;</span>gt;<span class="php-operator">=</span><span class="php-var">$limit</span><span class="php-brackets">)</span> <span class="php-brackets">{</span>
<span class="php-function">array_pop</span><span class="php-brackets">(</span><span class="php-var">$excerpt</span><span class="php-brackets">)</span>;
<span class="php-var">$excerpt</span> <span class="php-operator">=</span> <span class="php-function">implode</span><span class="php-brackets">(</span><span class="php-string">&quot; &quot;</span>,<span class="php-var">$excerpt</span><span class="php-brackets">)</span><span class="php-operator">.</span><span class="php-string">'...'</span>;
<span class="php-brackets">}</span> <span class="php-keyword">else</span> <span class="php-brackets">{</span>
<span class="php-var">$excerpt</span> <span class="php-operator">=</span> <span class="php-function">implode</span><span class="php-brackets">(</span><span class="php-string">&quot; &quot;</span>,<span class="php-var">$excerpt</span><span class="php-brackets">)</span>;
<span class="php-brackets">}</span>
<span class="php-var">$excerpt</span> <span class="php-operator">=</span> <span class="php-function">preg_replace</span><span class="php-brackets">(</span><span class="php-string">'`\[[^\]]*\]`'</span>,<span class="php-string">''</span>,<span class="php-var">$excerpt</span><span class="php-brackets">)</span>;
<span class="php-keyword">return</span> <span class="php-var">$excerpt</span>;
<span class="php-brackets">}</span>

<span class="php-function">function</span> content<span class="php-brackets">(</span><span class="php-var">$limit</span><span class="php-brackets">)</span> <span class="php-brackets">{</span>
<span class="php-var">$content</span> <span class="php-operator">=</span> <span class="php-function">explode</span><span class="php-brackets">(</span><span class="php-string">' '</span>, get_the_content<span class="php-brackets">(</span><span class="php-brackets">)</span>, <span class="php-var">$limit</span><span class="php-brackets">)</span>;
<span class="php-keyword">if</span> <span class="php-brackets">(</span><span class="php-function">count</span><span class="php-brackets">(</span><span class="php-var">$content</span><span class="php-brackets">)</span><span class="php-operator">&amp;</span>gt;<span class="php-operator">=</span><span class="php-var">$limit</span><span class="php-brackets">)</span> <span class="php-brackets">{</span>
<span class="php-function">array_pop</span><span class="php-brackets">(</span><span class="php-var">$content</span><span class="php-brackets">)</span>;
<span class="php-var">$content</span> <span class="php-operator">=</span> <span class="php-function">implode</span><span class="php-brackets">(</span><span class="php-string">&quot; &quot;</span>,<span class="php-var">$content</span><span class="php-brackets">)</span><span class="php-operator">.</span><span class="php-string">'...'</span>;
<span class="php-brackets">}</span> <span class="php-keyword">else</span> <span class="php-brackets">{</span>
<span class="php-var">$content</span> <span class="php-operator">=</span> <span class="php-function">implode</span><span class="php-brackets">(</span><span class="php-string">&quot; &quot;</span>,<span class="php-var">$content</span><span class="php-brackets">)</span>;
<span class="php-brackets">}</span>
<span class="php-var">$content</span> <span class="php-operator">=</span> <span class="php-function">preg_replace</span><span class="php-brackets">(</span><span class="php-string">'/\[.+\]/'</span>,<span class="php-string">''</span>, <span class="php-var">$content</span><span class="php-brackets">)</span>;
<span class="php-var">$content</span> <span class="php-operator">=</span> apply_filters<span class="php-brackets">(</span><span class="php-string">'the_content'</span>, <span class="php-var">$content</span><span class="php-brackets">)</span>;
<span class="php-var">$content</span> <span class="php-operator">=</span> <span class="php-function">str_replace</span><span class="php-brackets">(</span><span class="php-string">']]&amp;gt;'</span>, <span class="php-string">']]&amp;amp;gt;'</span>, <span class="php-var">$content</span><span class="php-brackets">)</span>;
<span class="php-keyword">return</span> <span class="php-var">$content</span>;
<span class="php-brackets">}</span></span></pre>
</div>
<p>And finally here is how you use this fantastic piece of code:</p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
2
3
4
5
6
7
</pre>
<pre><span class="php"><span class="php-script-tag">&lt;?php</span> excerpt<span class="php-brackets">(</span><span class="php-string">'20'</span><span class="php-brackets">)</span>;<span class="php-script-tag">?&gt;<span class="html">

// or

</span>&lt;?php</span> content<span class="php-brackets">(</span><span class="php-string">'20'</span><span class="php-brackets">)</span>;<span class="php-script-tag">?&gt;<span class="html"></span></span></span></pre>
</div>
<h3>The end</h3>
<p>We are finally done.  I would also like to make clear that the approaches I presented so far are not necessary all the existing or possible ways to achieve content limitation, however this is what I know and what I thought was of value to share with you. Thanks for reading.</p>
]]></content:encoded>
			<wfw:commentRss>http://wplancer.com/how-to-limit-content-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Pack your WordPress theme with the necessary CSS</title>
		<link>http://wplancer.com/pack-your-wordpress-theme-with-the-necessary-css/</link>
		<comments>http://wplancer.com/pack-your-wordpress-theme-with-the-necessary-css/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 11:11:00 +0000</pubDate>
		<dc:creator>BANAGO</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.wplancer.com/?p=646</guid>
		<description><![CDATA[WordPress themes are being a great online resource for everybody to use, modify and share. This applies to GPL themes only though. However, in order to offer our online neighbors good themes that they will be happy using, theme developers, including me, should take care of some peculiar aspects in themes such as the use [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin: 15px 10px 0 0;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwplancer.com%2Fpack-your-wordpress-theme-with-the-necessary-css%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwplancer.com%2Fpack-your-wordpress-theme-with-the-necessary-css%2F&amp;source=banago&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="size-full wp-image-649 alignright" title="wordpress-themes-css" src="http://www.wplancer.com/wp-content/wordpress-themes-css.png" alt="wordpress-themes-css" width="250" height="250" />WordPress themes are being a great online resource for everybody to use, modify and share. This applies to GPL themes only though. However, in order to offer our online neighbors good themes that they will be happy using, theme developers, including me, should take care of some peculiar aspects in themes such as the use of CSS code. Along with WordPress theme evolution, some default CSS code needs to be included in very theme so that certain in-built features work well. This is mostly the case of images, but not only.</p>
<p>In WordPress 2.5 several classes for aligning images and block elements like DIV, P, TABLE etc. were introduced.Every theme should have these CSS classes &#8211; you can alter the style if need &#8211; in its <em>style.css</em>. The same classes are used to align images that have a caption, introduced in WordPress 2.6. Three additional CSS classes are needed for the captions, together the alignment and caption classes are:</p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
</pre>
<pre><span class="css">.aligncenter, div.aligncenter {
<span class="css-property">display<span class="css-selector">:</span><span class="css-value"> block</span></span>;
<span class="css-property">margin-left<span class="css-selector">:</span><span class="css-value"> auto</span></span>;
<span class="css-property">margin-right<span class="css-selector">:</span><span class="css-value"> auto</span></span>;
}
.align<span class="css-property">left {
float<span class="css-selector">:</span><span class="css-value"> left</span></span>;
}
.align<span class="css-property">right {
float<span class="css-selector">:</span><span class="css-value"> right</span></span>;
}
.wp-caption {
<span class="css-property">border<span class="css-selector">:</span><span class="css-value"> 1px solid #ddd</span></span>;
<span class="css-property">text-align<span class="css-selector">:</span><span class="css-value"> center</span></span>;
<span class="css-property">background-color<span class="css-selector">:</span><span class="css-value"> #f3f3f3</span></span>;
<span class="css-property">padding-top<span class="css-selector">:</span><span class="css-value"> 4px</span></span>;
<span class="css-property">margin<span class="css-selector">:</span><span class="css-value"> 10px</span></span>;
<span class="css-comment">/* optional rounded corners for browsers that support it */</span>
<span class="css-property">-moz-border-radius<span class="css-selector">:</span><span class="css-value"> 3px</span></span>;
-khtml-<span class="css-property">border-radius<span class="css-selector">:</span><span class="css-value"> 3px</span></span>;
<span class="css-property">-webkit-border-radius<span class="css-selector">:</span><span class="css-value"> 3px</span></span>;
<span class="css-property">border-radius<span class="css-selector">:</span><span class="css-value"> 3px</span></span>;
}
.wp-caption img {
<span class="css-property">margin<span class="css-selector">:</span><span class="css-value"> 0</span></span>;
<span class="css-property">padding<span class="css-selector">:</span><span class="css-value"> 0</span></span>;
<span class="css-property">border<span class="css-selector">:</span><span class="css-value"> 0 none</span></span>;
}
.wp-caption p.wp-caption-text {
<span class="css-property">font-size<span class="css-selector">:</span><span class="css-value"> 11px</span></span>;
<span class="css-property">line-height<span class="css-selector">:</span><span class="css-value"> 17px</span></span>;
<span class="css-property">padding<span class="css-selector">:</span><span class="css-value"> 0 4px 5px</span></span>;
<span class="css-property">margin<span class="css-selector">:</span><span class="css-value"> 0</span></span>;
}</span></pre>
</div>
<p>Additionally, there are a few more WordPress CSS classes that you may optionally wish to style because WordPress generates them by default. I make use of most of them in my themes and I suggest very body uses them in their themes. There they are:</p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre>
<pre><span class="css">.categories {...}
.cat-item {...}
.current-cat {...}
.current-cat-parent {...}
.<span class="css-property">pagenav {...</span>}
.<span class="css-property">page_item {...</span>}
.current_<span class="css-property">page_item {...</span>}
.current_<span class="css-property">page_parent {...</span>}
.widget {...}
.widget_text {...}
.blogroll {...}
.linkcat{...}</span></pre>
</div>
<p>Did you find this information helpful? Do you have anything else to add? Your opinion is very much appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://wplancer.com/pack-your-wordpress-theme-with-the-necessary-css/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to Display Recent Comments Without Using a Plugin or Widget</title>
		<link>http://wplancer.com/how-to-display-recent-comments-without-using-a-plugin-or-widget/</link>
		<comments>http://wplancer.com/how-to-display-recent-comments-without-using-a-plugin-or-widget/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 12:32:04 +0000</pubDate>
		<dc:creator>BANAGO</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.wplancer.com/?p=603</guid>
		<description><![CDATA[Yes, that&#8217;s right, you can have comments displayed in your blog or site running on WordPress without using neither the classic pre-built Recent Comments Widget nor any of the Recent Comments Plugins that are available out there for everybody to use. To do so you need to have two pieces of PHP code with little [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin: 15px 10px 0 0;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwplancer.com%2Fhow-to-display-recent-comments-without-using-a-plugin-or-widget%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwplancer.com%2Fhow-to-display-recent-comments-without-using-a-plugin-or-widget%2F&amp;source=banago&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><div id="attachment_623" class="wp-caption alignright" style="width: 260px"><a href="http://www.banago.info/"><img src="http://www.wplancer.com/wp-content/comments-without-a-plugin-or-widget-250x250.png" alt="Comment Without a Plugin or Widget Live" title="comments-without-a-plugin-or-widget" width="250" height="250" class="size-medium wp-image-623" /></a><p class="wp-caption-text">Comment Without a Plugin or Widget Live</p></div>Yes, that&#8217;s right, you can have comments displayed in your blog or site running on WordPress without using neither the classic pre-built <em>Recent Comments Widget</em> nor any of the <em>Recent Comments Plugins</em> that are available out there for <a href="http://wordpress.org/extend/plugins/" title="WordPress Plugins">everybody to use</a>. To do so you need to have two pieces of PHP code with little (X)HTML code around it. We will not deal with CSS styling in this post, sorry. The first part is to be put on your<em> <strong>functions.php</strong></em> theme file and the second part wherever you feel like doing so in theme. So, let&#8217;s get our hands dirty.</p>
<p>Here is the code that you need to put in your <em>functions.php. </em></p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
</pre>
<pre><span class="php"><span class="php-operator">&lt;</span> <span class="php-operator">?</span>php <span class="php-comment">// Get Recet Comments Function
</span>
<span class="php-function">function</span> dp_recent_comments<span class="php-brackets">(</span><span class="php-var">$no_comments</span> <span class="php-operator">=</span> <span class="php-number">1</span><span class="php-number">0</span>, <span class="php-var">$comment_len</span> <span class="php-operator">=</span> <span class="php-number">3</span><span class="php-number">5</span><span class="php-brackets">)</span> <span class="php-brackets">{</span>
    <span class="php-keyword">global</span> <span class="php-var">$wpdb</span>;

	<span class="php-var">$request</span> <span class="php-operator">=</span> <span class="php-string">&quot;SELECT * FROM $wpdb-&gt;comments&quot;</span>;
	<span class="php-var">$request</span> <span class="php-operator">.</span><span class="php-operator">=</span> <span class="php-string">&quot; JOIN $wpdb-&gt;posts ON ID = comment_post_ID&quot;</span>;
	<span class="php-var">$request</span> <span class="php-operator">.</span><span class="php-operator">=</span> <span class="php-string">&quot; WHERE comment_approved = '1' AND post_status = 'publish' AND post_password =''&quot;</span>;
	<span class="php-var">$request</span> <span class="php-operator">.</span><span class="php-operator">=</span> <span class="php-string">&quot; ORDER BY comment_date DESC LIMIT $no_comments&quot;</span>;

	<span class="php-var">$comments</span> <span class="php-operator">=</span> <span class="php-var">$wpdb</span><span class="php-operator">-</span><span class="php-operator">&gt;</span>get_results<span class="php-brackets">(</span><span class="php-var">$request</span><span class="php-brackets">)</span>;

	<span class="php-keyword">if</span> <span class="php-brackets">(</span><span class="php-var">$comments</span><span class="php-brackets">)</span> <span class="php-brackets">{</span>
		<span class="php-keyword">foreach</span> <span class="php-brackets">(</span><span class="php-var">$comments</span> <span class="php-keyword">as</span> <span class="php-var">$comment</span><span class="php-brackets">)</span> <span class="php-brackets">{</span>
			<span class="php-function">ob_start</span><span class="php-brackets">(</span><span class="php-brackets">)</span>;
			<span class="php-script-tag">?&gt;<span class="html">
				<span class="html-other-element">&lt;li&gt;</span>
					<span class="html-anchor-element">&lt;a href=<span class="html-attribute">&quot;</span></span></span>&lt;?php</span> <span class="php-keyword">echo</span> get_permalink<span class="php-brackets">(</span> <span class="php-var">$comment</span><span class="php-operator">-</span><span class="php-operator">&gt;</span>comment_post_ID <span class="php-brackets">)</span> <span class="php-operator">.</span> <span class="php-string">'#comment-'</span> <span class="php-operator">.</span> <span class="php-var">$comment</span><span class="php-operator">-</span><span class="php-operator">&gt;</span>comment_ID; <span class="php-script-tag">?&gt;<span class="html">&quot;&gt;<span class="html-other-element">&lt; ?php echo dp_get_author($comment); ?&gt;</span>:<span class="html-anchor-element">&lt;/a&gt;</span>
					<span class="html-other-element">&lt; ?php echo strip_tags(substr(apply_filters(<span class="html-attribute">'get_comment_text'</span>, $comment-&gt;</span>comment_content), 0, $comment_len)); ?&gt;
				<span class="html-other-element">&lt;/li&gt;</span>
			<span class="html-other-element">&lt; ?php
			ob_end_flush();
		}
	} else {
		echo <span class="html-attribute">'&lt;li</span>&gt;</span>'.__('No comments', 'banago').'';
	}
}

function dp_get_author($comment) {
	$author = &quot;&quot;;

	if ( empty($comment-&gt;comment_author) )
		$author = __('Anonymous', 'banago');
	else
		$author = $comment-&gt;comment_author;

	return $author;
}?&gt;</span></span></span></pre>
</div>
<p>You need to stop at two moments in the code:</p>
<p>The first one is the comment length. You can change the the length of the comment excerpt that you want to display on your blog by setting the number of the characters here:</p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
</pre>
<pre><span class="php"><span class="php-function">function</span> dp_recent_comments<span class="php-brackets">(</span><span class="php-var">$no_comments</span> <span class="php-operator">=</span> <span class="php-number">1</span><span class="php-number">0</span>, <span class="php-var">$comment_len</span> <span class="php-operator">=</span> <span class="php-number">3</span><span class="php-number">5</span><span class="php-brackets">)</span></span></pre>
</div>
<p>The second is the comment wrapping.</p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
</pre>
<pre><span class="php"><span class="php-keyword">echo</span> <span class="php-string">'&lt;li&gt;'</span><span class="php-operator">.</span>__<span class="php-brackets">(</span><span class="php-string">'No comments'</span>, <span class="php-string">'banago'</span><span class="php-brackets">)</span><span class="php-operator">.</span><span class="php-string">'&lt;/li&gt;'</span>;</span></pre>
</div>
<p>It is normally wrapped in <em>&lt;li&gt;comment&lt;/li&gt;</em> because you are supposed to wrap the comments query in by a ordered or unordered list, as we will see below. However, you can change the wrapping tags to whatever you like.</p>
<p>The final step of this process is querying the comments to display on your desired part of the blog or site. All you have to do now is to put the code below where you like on your theme.</p>
<p>Here is the code to query the comments to display on you theme. Please note that the number in the brackets sets the number of the comment to be displayed &#8211; you can change it to fit your needs. </p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
2
3
4
5
6
7
8
9
10
11
</pre>
<pre><span class="php"><span class="php-operator">&lt;</span>div <span class="php-keyword">class</span><span class="php-operator">=</span><span class="php-string">&quot;custom widget&quot;</span><span class="php-operator">&gt;</span>
<span class="php-operator">&lt;</span>h<span class="php-number">3</span><span class="php-operator">&gt;</span>Recent Comments<span class="php-operator">&lt;</span><span class="php-operator">/</span>h<span class="php-number">3</span><span class="php-operator">&gt;</span>
<span class="php-operator">&lt;</span>ul<span class="php-operator">&gt;</span>
<span class="php-operator">&lt;</span> <span class="php-operator">?</span>php dp_recent_comments<span class="php-brackets">(</span><span class="php-number">6</span><span class="php-brackets">)</span>; <span class="php-script-tag">?&gt;<span class="html">
<span class="html-other-element">&lt;/ul&gt;</span>
<span class="html-other-element">&lt;/div&gt;</span></span></span></span></pre>
</div>
<p>If you found this short tutorial helpful or your need any sort of help, just write a short comment below. Thanks and good luck!</p>
<h3>UPDATE: This has been a quite active post and I can see that a lot of people need this functionality. If you want this on your blog/site, but you do not know how to do that, please <a href="http://www.wplancer.com/contact/">drop me a line</a>.</h3>
]]></content:encoded>
			<wfw:commentRss>http://wplancer.com/how-to-display-recent-comments-without-using-a-plugin-or-widget/feed/</wfw:commentRss>
		<slash:comments>81</slash:comments>
		</item>
		<item>
		<title>UKlocum, my Latest WordPress Freelance Project</title>
		<link>http://wplancer.com/uklocum-my-latest-wordpress-freelance-project/</link>
		<comments>http://wplancer.com/uklocum-my-latest-wordpress-freelance-project/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 21:19:22 +0000</pubDate>
		<dc:creator>BANAGO</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Theme]]></category>

		<guid isPermaLink="false">http://www.wplancer.com/?p=559</guid>
		<description><![CDATA[One of my many WordPress freelance projects I am working on is UKlocum. This is one of the many projects I have received from my dear client from Poland, Greg. When Greg contacted me for this project explaining what he wanted to do, he asked me if this could be done with WordPress. He had [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin: 15px 10px 0 0;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwplancer.com%2Fuklocum-my-latest-wordpress-freelance-project%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwplancer.com%2Fuklocum-my-latest-wordpress-freelance-project%2F&amp;source=banago&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>One of my many WordPress freelance projects I am working on is <a title="WordPress Freelance Project UKlocum" href="http://www.uklocum.pl" target="_blank">UKlocum</a>. This is one of the many projects I have received from my dear client from Poland, Greg. When Greg contacted me for this project explaining what he wanted to do, he asked me if this could be done with WordPress. He had seen the potential of WordPress in other previous smaller projects we worked on. Before that, he had thought of getting it custom made from scratch, which would have cost him too much. So, I told him WordPress could handle it and we decided to go with WordPress. This site was a real challenge in terms of functionality and all this post is about is that<strong> WordPress handles perfectly CMS websites</strong>.</p>
<h3>The Theme</h3>
<div id="attachment_584" class="wp-caption alignright" style="width: 310px"><a href="http://www.wplancer.com/wp-content/uklocum.png"><img class="size-medium wp-image-584" title="uklocum" src="http://www.wplancer.com/wp-content/uklocum-300x193.png" alt="uklocum" width="300" height="193" /></a><p class="wp-caption-text">UKLocum Website Preview</p></div>
<p>This project was pretty urgent and I could not afford to design a new theme from scratch, having a lot of other works in hand.  So I decided to go for a free WordPress theme and tweak it to fit my needs. I looked around and I can say that the theme community of WordPress is doing a great job. What I decided to go for is the <a title="Magazeen WordPress Theme" href="http://wefunction.com/2009/02/free-theme-magazeen/" target="_blank">Magazeen </a>theme that was featured at <a title="Magazeen WordPress Theme" href="http://www.smashingmagazine.com/2009/02/23/magazeen-free-magazine-look-wordpress-theme/" target="_blank">Smashing Magazine</a> too. Do you want to know what I tweaked? Read on&#8230;</p>
<h4>Theme Code Cleaning</h4>
<p>As you may already know, coders code differently. That is why getting your hands dirty with others people&#8217;s code is not a very enjoyable experience, moreover, sometimes it is a real pain. That was the case even with <a title="Magazeen WordPress Theme" href="http://wefunction.com/2009/02/free-theme-magazeen/" target="_blank">Magazeen</a> which I expected to be better coded. The problem with code was that there where redundant use of DIVS and not logical cascading of CSS. <em>This is my humble opinion &#8211; check it yourslef to be sure</em>.</p>
<p>Most of code clearing was easy as it consisted in just removing functionality that the theme came prepacked with such as comments form, advanced widgets, thumbs gallery other elements that I cannot recall now, but it is quite boring and frustrating in other tasks as the <strong>drop down menu integration</strong> below.</p>
<h4>Suckerfish drop down menu integration</h4>
<p>The <em>Magazeen</em> theme did not come with a drop down menu, so I needed to integrate one as my client, Greg, required it. Not going into much trouble, I decided to use the <a title="suckerfish drop down menu" href="http://htmldog.com/articles/suckerfish/" target="_blank">Suckerfish Drop Down Menu</a> which I had used several times previously. Because the code was messy, the most difficult part was fitting<em> the theme code to the menu</em> rather than integrating the drop down menu to the theme. However, it ended to be a success.</p>
<h3>Custom Banner Integration</h3>
<p>The custom banner integration consisted in removing some code from the banner section and placing the banner image there. Also, to help SEO of the site, I used a<strong> CSS image replacement</strong> techinque for the logo so that the human fisitors can see the nice image logo whereas the search engines read the given text wrapped in &lt;h1&gt; html tags.</p>
<h4>Color Combination Alteration</h4>
<p>Pawel, my client&#8217;s graphic designer, suggested that we used another color combination that would go better with the logo and banner colors. I implemented that color combination and it resulted in  another success.</p>
<h4>Welcome Guest or User</h4>
<p>Under the menu, I integrated a piece of PHP code from WordPress to <em>welcome</em> a guest visitor and to tell them to log in or to register and also to greet a registered user and to allow them to log out from front page or any other part of the site, so that not to make them to spend time and click to go to admin panel to log out.</p>
<h4>Extended User Register</h4>
<p>Because of the nature of the site and the needs of my client, he asked me if we could extend the register form with other fields. So  I did, using a great plugin called <a title="Visit plugin homepage" href="http://skullbit.com/wordpress-plugin/register-plus/">Register Plus</a>. This is a very feature reach plugin which would allow you do almost anything with your register page, from having your custom logo to adding a lot of functionality and fields. I want to immensely thank the plugin&#8217;s developer for offering such a great plugin to the WordPress community.</p>
<h3>Events Manager</h3>
<p>The most impressing part of the UKLocum is the <a title="Visit plugin homepage" href="http://davidebenini.it/wordpress-plugins/events-manager/">Events Manager</a>. The Events Manager is a plugin developed by <a title="Visit author homepage" href="http://www.davidebenini.it/blog">Davide Benini</a>. It allows you to manage events specifying precise spatial data such as location, town, province, etc. It allows your visitors to book their participation in listed events. In my opinion it is the best plugin out there for <strong>event management</strong>.</p>
<p>When my client, Greg, saw it, he was enthusiastic about it. However, we had to face a challenge with the events. We needed to have people register first for the site, after that they would be able to book the events. Taking in consideration that the plugin developers have fulfilled almost any need in functionality terms, I found the solution fast enough. I employed the <a title="Visit plugin homepage" href="http://nguyenthanhcong.com/hidepost-plugin-for-wordpress/">HidePost</a> to accomplish that task, just another great plugin out there. I hid the booking form from not logged in visitors, telling them to log in or register, if not, to be able to book the event. That was the happy end of our next challenge.</p>
<h3>Bottom Line</h3>
<p>What would be the last words of this long boring post? Hmmm! As you could have already deducted from reading this post, WordPress is being more and more important in nowadays web environment. Also,  running <strong>WordPress freelance business</strong> (perhaps that&#8217;s not the right collocation) is a great way to make a living by making money online. The last but not the least, if you need a <strong>custom WordPress theme</strong> or other <a title="WordPress Servises" href="http://www.wplancer.com/wordpress-freelance-services/"><strong>WordPress services</strong></a> and, if you are looking for a <strong><a title="About WPlancer" href="http://www.wplancer.com/about/">professional and reliable WordPress freelancer</a>, </strong>look no further than my <a title="Contact WPlancer" href="http://www.wplancer.com/contact/"><strong>contact page</strong></a>.</p>
<p>Don&#8217;t forget that your opinion is most appreciated &#8211; please share it below.</p>
]]></content:encoded>
			<wfw:commentRss>http://wplancer.com/uklocum-my-latest-wordpress-freelance-project/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>How to find a WordPress category ID</title>
		<link>http://wplancer.com/how-to-find-a-wordpress-category-id/</link>
		<comments>http://wplancer.com/how-to-find-a-wordpress-category-id/#comments</comments>
		<pubDate>Sun, 18 Jan 2009 23:08:01 +0000</pubDate>
		<dc:creator>BANAGO</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.wplancer.com/?p=344</guid>
		<description><![CDATA[Many WordPress themes, especially those in magazine style, need to have some configurations in terms of category IDs in order to show things properly. They will often ask you for a Category ID in the theme option panel. And you might be wandering how on earth to find those IDs. ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin: 15px 10px 0 0;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwplancer.com%2Fhow-to-find-a-wordpress-category-id%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwplancer.com%2Fhow-to-find-a-wordpress-category-id%2F&amp;source=banago&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Many WordPress themes, especially those in magazine style, need to have some configurations in terms of <em>category IDs</em> in order to show things properly. They will often ask you for a Category ID in the theme option panel. And you might be wandering how on earth to find those IDs.</p>
<p>That is, in fact, a quite easy task &#8211; even though it might be a little tricky. This post is all about those IDs and how to find them in no time. Here we go:</p>
<ol>
<li>On your dashboard, under the Posts menu, click <strong><em>Categories</em></strong>;</li>
<li>Keep the mouse over the category whose ID you need;</li>
<li>Look at your browser’s status bar and you will see something like this in the shown URL: <em><strong>tag_ID=160</strong> &#8211; </em>all you need is the number.</li>
</ol>
<p><a href="http://www.wplancer.com/wp-content/How-to-find-category-or-tag-ID-in-WordPress.png"><img class="alignnone size-full wp-image-1060" title="How-to-find-category-or-tag-ID-in-WordPress" src="http://www.wplancer.com/wp-content/How-to-find-category-or-tag-ID-in-WordPress.png" alt="" width="600" height="300" /></a></p>
<p>So that you know, this is true for WordPress tags and other custom taxonomies you might be using in your site &#8211; the ID finding process is the same.</p>
<p>This is all for this time. I hope you enjoyed it. And good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://wplancer.com/how-to-find-a-wordpress-category-id/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Master: Premium GPL WordPress Theme</title>
		<link>http://wplancer.com/master-premium-gpl-wordpress-theme/</link>
		<comments>http://wplancer.com/master-premium-gpl-wordpress-theme/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 22:32:31 +0000</pubDate>
		<dc:creator>BANAGO</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Theme]]></category>

		<guid isPermaLink="false">http://www.wplancer.com/?p=367</guid>
		<description><![CDATA[As announced in the introductory post of Master WordPress theme, I am releasing my first ever free WordPress theme. I am very happy to have achieved this and I am very hopeful that 2009 will be a great year of success for my WordPress freelance experience. Below I have taken an two paragraphs from my [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin: 15px 10px 0 0;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwplancer.com%2Fmaster-premium-gpl-wordpress-theme%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwplancer.com%2Fmaster-premium-gpl-wordpress-theme%2F&amp;source=banago&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>As announced in the introductory post of Master WordPress theme, I am releasing my first ever free WordPress theme. I am very happy to have achieved this and I am very hopeful that 2009 will be a great year of success for my WordPress freelance experience. Below I have taken an two paragraphs from my introductory post for the master theme I am releasing.</p>
<blockquote>
<h3>Do I have to pay for the theme?</h3>
<p>No, the theme will be available for free download and usage. The theme in fact is being released under the GPL license which is the same license that WordPress uses. The theme will also have free updates and upgrades forever. Also, I hope we guys build a great support forum for this theme and others to come which will also be free to access, ask and answer.</p>
<h3>What do I have to pay for than?</h3>
<p>You might never have to pay for anything. But, in case you need help to set up the theme, configure the plugins etc, you might want to buy one of the five (5) service packages that will come along with the theme. These packages vary from setup to theme enhancements and even PSD to the actual theme. More information about this topic will come along with the theme release.</p></blockquote>
<h3><strong>Master Theme Features</strong></h3>
<ul>
<li> Modern and beautiful web typeface.</li>
<li>Tableless design and 100% CSS-based layout.</li>
<li>2 columns of fixed width.</li>
<li>Widget Ready.</li>
<li>XHTML 1.0 Transitional valid.</li>
<li>CSS 2.1 valid.</li>
<li> Search Engine optimized coding make wise use of h1, h3, h3.</li>
</ul>
<p><a href="http://www.wplancer.com/wp-content/screenshot.png"><img class="alignnone size-medium wp-image-348" title="Master WordPress Theme" src="http://www.wplancer.com/wp-content/screenshot.png" alt="Master WordPress Theme" width="600" /></a></p>
<h3>Preview and Download</h3>
<ul>
<li><a title="Master Theme" href="http://wordpress.org/extend/themes/master/" target="_blank">Preview Master Theme</a> at WordPress theme directory. A better preview is to come soon.</li>
<li><a title="Download Master Theme" href="http://wordpress.org/extend/themes/download/master.1.0.zip" target="_blank">Download Master Theme</a></li>
</ul>
<h3>Support and Customization</h3>
<table style="height: 244px;" border="0" width="600">
<thead>
<tr>
<td><strong>Master Theme</strong></td>
<td style="text-align: center;"><strong>Pack 1</strong></td>
<td style="text-align: center;"><strong>Pack </strong><strong>2</strong></td>
<td style="text-align: center;"><strong>Pack </strong><strong>3</strong></td>
<td style="text-align: center;"><strong>Pack </strong><strong>4</strong></td>
<td style="text-align: center;"><strong>Pack </strong><strong>5</strong></td>
</tr>
</thead>
<tbody>
<tr>
<td>Theme download</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
</tr>
<tr>
<td>Updates and upgrades</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
</tr>
<tr>
<td>Knowledge base</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
</tr>
<tr>
<td>Forums support</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
</tr>
<tr>
<td>Site/Blog Setup</td>
<td style="text-align: center;"></td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
</tr>
<tr>
<td>Plugin selection and configuration</td>
<td style="text-align: center;"></td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
</tr>
<tr>
<td>Email Support and on-site support</td>
<td style="text-align: center;"></td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
</tr>
<tr>
<td>Color and font customization</td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
</tr>
<tr>
<td>Structure and look customization</td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;">Yes</td>
<td style="text-align: center;">Yes</td>
</tr>
<tr>
<td>PSD to Master theme conversion</td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;">Yes</td>
</tr>
</tbody>
<tfoot>
<tr>
<td><strong>Fees</strong></td>
<td style="text-align: center;"><strong>Free</strong></td>
<td style="text-align: center;"><strong>$39</strong></td>
<td style="text-align: center;"><strong>$79</strong></td>
<td style="text-align: center;"><strong>$99</strong></td>
<td style="text-align: center;"><strong>$149</strong></td>
</tr>
</tfoot>
</table>
<h3>Installation</h3>
<p>STEP 1. Extract the files it contains. You need to preserve the directory structure in the archive when extracting these files.<br />
STEP 2. Upload the theme to your /wp-content/themes/ directory.<br />
STEP 3. Now go to Appearance &gt;&gt; Themes and activate the &#8220;Master&#8221; theme.</p>
<h3>License</h3>
<p>Master theme is licensed under the <a title="GPL" href="http://www.gnu.org/copyleft/gpl.html" target="_blank">GPL</a>. It may be freely modified and copied as long as the license stays GPL. This means that you may use it for your personal and commercial projects and you may also make any changes you like.</p>
<h3>Change Log</h3>
<p>2009-01-07: Initial 1.0 release.</p>
]]></content:encoded>
			<wfw:commentRss>http://wplancer.com/master-premium-gpl-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Blog Design: WebVideoMax.com</title>
		<link>http://wplancer.com/blog-design-webvideomaxcom/</link>
		<comments>http://wplancer.com/blog-design-webvideomaxcom/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 12:13:23 +0000</pubDate>
		<dc:creator>BANAGO</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Theme]]></category>

		<guid isPermaLink="false">http://www.wplancer.com/?p=148</guid>
		<description><![CDATA[<a title="WebVideoMax" href="http://webvideomax.com/" target="_blank">Andrew Kelly</a> contacted me for a kind of business blog project that he was working on. After I showed his some of my previews works and we agreed on the price, I begin designing a WordPress theme for him. He had previously chosen to use as a theme the <a title="Semilogic" href="http://www.semiologic.com/" target="_blank">semilogic</a> theme framework. Well, his decision made me suffer until I suggested him that developed a theme just for him from scratch. He agreed ...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin: 15px 10px 0 0;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwplancer.com%2Fblog-design-webvideomaxcom%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwplancer.com%2Fblog-design-webvideomaxcom%2F&amp;source=banago&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a title="WebVideoMax" href="http://webvideomax.com/" target="_blank">Andrew Kelly</a> contacted me for a kind of business blog project that he was working on. After I showed him some of my previous works and we agreed on the price, I began designing a WordPress theme for him. He had previously chosen to use as a theme the <a title="Semilogic" href="http://www.semiologic.com/" target="_blank">semilogic</a> theme framework. Well, his decision made me suffer until I suggested him that I developed the theme for him from scratch. He agreed and on this we went on. This project took a little bit long as I was working on other projects simultaneously. However working with Andrew was a great experience.</p>
<h3>Design</h3>
<p>When Andrew contacted me, he showed me a couple of sites that he wanted his blog to look like. He wanted something fresh and have a web 2.0 feel. Some guys might argue that web 2.0 means nothing, however there are a lot of designers and blog writers that have listed out the features of web 2.0 &#8211; but this is not the point of this post. Let&#8217;s focus on the design process. I used an heavy blue color throughout the blog with some fresh web 2.0 effects. I did all this with <a title="Inkscape" href="http://www.inkscape.org/" target="_blank">Inkscape</a>, my favorite vector graphic design application. I cannot say I am a great designer, but I can reach high quality in design if clients describe me clearly what they want.<br />
<a href="http://www.webvideomax.com"><img class="size-medium wp-image-279 aligncenter" title="webvideomax" src="http://www.wplancer.com/wp-content/webvideomax.png" alt="webvideomax" /></a></p>
<h3>Coding</h3>
<p>As I said earlier, the early coding process was very painful. After we decided  to have the theme developed from scratch, it was a very nice experience as coding is the part I like most. I had to work with XTHML, CSS, PHP with WordPress flavor.</p>
<p>The theme is coded in tableless XHTML/CSS. At first it was pure and valid, but after my client, Andrew implemented Awaber subscription code into it, it turned to have some validation errors. It is not a situation I like to be in, as I claim I code only <em>valid </em>talbleless XHTML/CSS websites and WordPress themes, but I cannot interfere with my clients choices.</p>
<h3>Layout</h3>
<p>The theme has a  two column layout. It has a left main column where the blog content is placed and a right wide sidebar. On front page it has a big welcoming video before the fold under which four other posts queried according to categories are shown. It is a nice simple layout informative layout.</p>
<h3>Widgets</h3>
<p>The theme has a fully customizable, widget-ready sidebar. Widgetizing WordPress themes is a pleasurable experience for me  and I could not leave it unwidgetized even though widget are little employed by my client, Andrew.</p>
<h3>Testimonial</h3>
<blockquote><p>After a lot of frustration working with many Web Designers it has been a real refreshing change to work with someone like Baki, his constant follow up and willingness to over deliver on all levels has made a huge difference to our productivity and our web business bottom line. Nothing is ever too much trouble for Baki which makes him a real pleasure to work with. I just wish all our team could be as reliable and project focused as Baki! <a title="Andrew Kelly" href="http://webvideomax.com" target="_blank">Andrew Kelly</a> of <a title="Andrew Kelly" href="http://clicksmartmarketing.com" target="_blank">ClickSmartMarketing.com</a></p></blockquote>
<h3>Conclusion</h3>
<p>This is all I could write down about my experience with Andrew Kelly. I would love to hear your thoughts about this theme. Also, please consider subscribing to my <a title="WPlancer RSS Feeds" href="http://feeds.feedburner.com/wplancer">RSS Feeds</a> to have the possibility to read and view more great articles and projects. In case you need a WordPress theme, you can <a title="Contact me" href="../contact/">drop me a line</a> using my contact page. If you are not sure, please have a look at my <a title="custom WordPress themes" href="../portfolio/">portfolio</a> to see more works of mine. Thanks for reading!</p>
]]></content:encoded>
			<wfw:commentRss>http://wplancer.com/blog-design-webvideomaxcom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove nofollow attribute from your WordPress blog</title>
		<link>http://wplancer.com/how-to-remove-nofollow-attribute-from-your-wordpress-blog/</link>
		<comments>http://wplancer.com/how-to-remove-nofollow-attribute-from-your-wordpress-blog/#comments</comments>
		<pubDate>Sat, 13 Dec 2008 19:48:58 +0000</pubDate>
		<dc:creator>BANAGO</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.wplancer.com/?p=248</guid>
		<description><![CDATA[As you may already know, WordPress the rel=”nofollow” attribute in comments. That makes any comment with a link on it have no significance for Google when they ranks websites. Getting rid of the rel=&#8221;nofollow&#8221; attribute is one of the tactics that many WordPress bloggers follow to get more people comment on their blogs. And in [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin: 15px 10px 0 0;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwplancer.com%2Fhow-to-remove-nofollow-attribute-from-your-wordpress-blog%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwplancer.com%2Fhow-to-remove-nofollow-attribute-from-your-wordpress-blog%2F&amp;source=banago&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>As you may already know, WordPress the <em>rel=”nofollow” </em>attribute in comments. That makes any comment with a link on it have no significance for Google when they ranks websites. Getting rid of the rel=&#8221;nofollow&#8221; attribute is one of the tactics that many WordPress bloggers follow to get more people comment on their blogs. And in my view, this is quite fair &#8211; comments add content to a certain blog, the blog pays them back with a link that will be counted by Google, will rise their pagerank and make their way up in Google searches. So, let&#8217;s begin.</p>
<p>There are two ways through which you can turn off <em>rel=”nofollow”</em> attribute in your blog:</p>
<h3>1. Changing WordPress Core</h3>
<p>Editing WordPress core might not be a good idea for bloggers who are not very familiar with coding. For others, like me, who can do any code editing, online through FTP or offline, this is something that they do everyday. That would save the time of downloading, installing and making work another plugin. However, keep in mind that you need to redo this action every time you do an upgrade.</p>
<p>There is only one file you need to edit and all you have to do is remove the word <em>nofollow</em>. This word is located at <em>wp-includes/comment-template.php</em> on line 148. It looks like this:</p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
</pre>
<pre><span class="php"><span class="php-var">$return</span> <span class="php-operator">=</span> <span class="php-string">&quot;&lt;a rel=&quot;</span>external nofollow<span class="php-string">&quot; href=&quot;</span><span class="php-var">$url&quot;</span><span class="php-operator">&gt;</span><span class="php-var">$author</span><span class="php-operator">&lt;</span><span class="php-operator">/</span>a<span class="php-operator">&gt;</span><span class="php-string">&quot;;</span></span></pre>
</div>
<p>All you have to do is remove the word <em>nofollow </em>only and save the file.  This is it!</p>
<p><a href="http://www.wplancer.com/wp-content/wordpress-remove-no-follow.png"><img class="alignnone size-full wp-image-251" title="wordpress-remove-no-follow" src="http://www.wplancer.com/wp-content/wordpress-remove-no-follow.png" alt="wordpress-remove-no-follow" width="600" height="286" /></a></p>
<h3>2. Employing a Plugin</h3>
<p>If you do not feel comfortable with editing the WordPress core, you can employ a plugin to do that for you. Keep in mind that you will have the plugin too, when new versions are released. Below you will find a list of such plugins. Chose the one that is good for you and install it.</p>
<ol>
<li><a title="DoFollow" href="http://kimmo.suominen.com/sw/dofollow/" target="_blank">DoFollow 4.0</a></li>
<li><a title="NoFollow Free" href="http://www.michelem.org/wordpress-plugin-nofollow-free/" target="_blank">NoFollow Free</a></li>
<li><a title="Lucias Linky Love" href="http://money.bigbucksblogger.com/lucias-linky-love-a-dofollow-plugin-to-foil-human-comment-spammers/" target="_blank">Lucia&#8217;s Linky Love</a></li>
<li><a title="Sem Nofollow" href="http://www.semiologic.com/software/wp-tweaks/dofollow/" target="_blank">Sem NoFollow</a></li>
<li><a title="Link Love" href="http://www.allpassionmarketing.com/blog/2007/02/share-the-link-love-again.html" target="_blank">Link Love</a></li>
<li><a title="Remove Nofollow" href="http://www.seopedia.org/personal/remove-nofollow-from-wordpress-comments/" target="_blank">Remove Nofollow</a></li>
</ol>
<p>Time for publicity: By removing the <em>nofollow attribute</em> you are giving something away for free to your visitors, tell this to your visitors. You will motivate more people to comment for sure. Good luck!</p>
<p>PS: Don&#8217;t forget that WPlancer is a DoFollow blog and I love to hear what you think. Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://wplancer.com/how-to-remove-nofollow-attribute-from-your-wordpress-blog/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
	</channel>
</rss>

