<?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; Tips</title>
	<atom:link href="http://wplancer.com/tag/tips/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>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>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>
		<item>
		<title>Upgrading WordPress in Ten Easy Steps</title>
		<link>http://wplancer.com/upgrading-wordpress-in-ten-easy-steps/</link>
		<comments>http://wplancer.com/upgrading-wordpress-in-ten-easy-steps/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 10:50:48 +0000</pubDate>
		<dc:creator>BANAGO</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.wplancer.com/?p=52</guid>
		<description><![CDATA[It came to my mind to write an easy and short how-to to explain for not very techy people the way to upgrade their self-hosted WordPress, when one of my clients asked me why her admin interface was showing that she should upgrade WordPress to the latest version. ]]></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%2Fupgrading-wordpress-in-ten-easy-steps%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwplancer.com%2Fupgrading-wordpress-in-ten-easy-steps%2F&amp;source=banago&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>It came to my mind to write an easy and short how-to to explain for not very techy people the way to upgrade their self-hosted WordPress, when one of my clients asked me why her admin interface was showing that she should upgrade WordPress to the latest version. She thought she had already done that. In fact she had, but to the version 2.5. Now it is a long time WordPress version 2.5.1 is available. Well, this can help my client to upgrade WordPress herself, but I would love also this this help hundreds of others. Enough with the words, let us begin.</p>
<p><strong>Step 1 -</strong> <strong>Create an FTP account:</strong> Many know what FTP (File Transfer Protocol) is and already have their accounts. Well, those who do not have one can create it in their Administration Panel that their <a title="Web Host" href="http://www.webhostingsearch.com/" target="_blank">web host</a> has provided them with. I hope you FTP-have-nots find this process easy.</p>
<p><strong>Step 2 &#8211; Download an FTP application: </strong> There are many. To keep it short I recommend <a title="FileZilla" href="http://filezilla-project.org/" target="_blank">FileZilla</a> , free/open source and easy to use. After you download it, you enter your FTP account info in it and have the files of your WordPress listed in it. To use it is very easy, as i previously said. You have there two environments, the online and  the offline one. To upload or download by FTP just drag and drop files or right-click and use the menu.</p>
<p><strong>Step 3 &#8211; Export the information to XML:</strong> This is done in case something goes wrong with the upgrade. This is not a real database backup, but you have your articles and comments at safe after you do so. To do that you just have to go to <strong>Manage =&gt; Export</strong> . Than follow the easy steps that it provides and export a copy of your content.</p>
<p><strong>Step 4 &#8211; Deactivate all plugins: </strong> In your admin panel, under the Plugins menu, deactivate all plugins that you have there. Some plugins may conflict with the upgrade process because of the changes to WordPress, so this is another must.</p>
<p><strong>Step 5 &#8211; </strong> <strong>Download the latest version of WordPress:</strong> To do so, just go to <a title="wordpress.org" href="http://wordpress.org/download/" target="_blank">wordpress.org download section</a> and get the latest version of WordPress in .tar or .zip. Make sure that you download goes fine because if not all the files are downloaded or there have been problems, you might have problems to run the new version properly, if not have errors all around.</p>
<p><strong>Step 6 &#8211; Delete the old WordPress Files: </strong> You have to do so, unless your upgrade will not be successful. If you try just to overwrite the previous files, you will have problems as not every single file gets overwritten correctly. Keep in mind, you should <strong>not delete or overwrite in any way this files and folders</strong> :</p>
<p><img class="alignnone size-medium wp-image-72 alignright" style="float: right;" title="wp" src="http://www.wplancer.com/wp-content/wp-250x250.png" alt="" width="250" height="250" /></p>
<ul>
<li>wp-config.php file;</li>
<li>wp-content folder; Special Exception: the wp-content/cache and the wp-content/plugins/widgets;</li>
<li>wp-images folder;</li>
<li>wp-includes/languages/ folder&#8211;if you are using a language file;</li>
<li>.htaccess file&#8211;if you have added custom rules to your .htaccess;</li>
<li>robots.txt file&#8211;if your blog lives in the root of your site (ie. the blog is the site) and you have created such a file.</li>
</ul>
<p><strong>Step 7 &#8211; Upload the New Files:</strong> Upload the right files from your computer&#8217;s hard drive to the appropriate WordPress folder on your site. Make sure that you do not overwrite the files and folders mentioned at step 6.</p>
<p><strong>Step 8 &#8211; Upgrade Database Structure:</strong> Do not be afraid, this is very easy. Just do so: If WordPress is installed in the root directory, point your browser to: http://yoursite.com/wp-admin/upgrade.php. If WordPress is installed in its own subdirectory called blog, for example, point your browser to: http://example.com/blog/wp-admin/upgrade.php. And wait for the upgrade success message.</p>
<p><strong>Step 9 &#8211;   Update Permalinks and .htaccess</strong> :  Update your permalink structure, if you like it, into your .htaccess file. In your Options-&gt;Permalinks  panel update your Permalink Structure and, if necessary, place the rules in your .htaccess file. This will happen when the .htaccess is not writable; you should have a tool to paste the code into it or otherwise it should be writable.</p>
<p><strong>Step 10 &#8211; </strong> <strong>activate your Plugins:</strong> Now it is time to activate your plugins that you need or like. You can do that the same way back as you deactivated the plugins. It will be a loss of time to go on with this point.</p>
<p>And we are done. I hope you find this little effort of me to serve the community a good one. Any feed back would be very appreciated. Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://wplancer.com/upgrading-wordpress-in-ten-easy-steps/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>10 Bulletproof Strategies for Promoting Your Blog</title>
		<link>http://wplancer.com/10-bulletproof-strategies-for-promoting-your-blog/</link>
		<comments>http://wplancer.com/10-bulletproof-strategies-for-promoting-your-blog/#comments</comments>
		<pubDate>Mon, 12 May 2008 15:48:52 +0000</pubDate>
		<dc:creator>BANAGO</dc:creator>
				<category><![CDATA[Freelance]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.xixblog.com/?p=20</guid>
		<description><![CDATA[Every blogger has to promote their blog to get into the market and reach their goals. Blog promotion might seem a little scary, but it is not that difficult to promote your blog. Find below ten promotion strategies that will work for you to make your blog well-known and profitable.]]></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%2F10-bulletproof-strategies-for-promoting-your-blog%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwplancer.com%2F10-bulletproof-strategies-for-promoting-your-blog%2F&amp;source=banago&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Every blogger has to promote their blog to get into the market and reach their goals. Blog promotion might seem a little scary, but it is not that difficult to promote your blog. Find below ten promotion strategies that will work for you to make your blog well-known and profitable.</p>
<p><strong>1. Write fresh, qualitative and unique content</strong> to make visitors read, comment and refer to your articles. Not only will worth-reading content keep visitors coming back, but it will make others come at your blog through referring links. Good articles will rise the authority of your blog and will make you a well-known author.</p>
<p><strong>2. Post at regular bases</strong> to keep the interest of the visitors active and make them come back to get more form your blog. This will find it worthy to subscribe by email or get the RSS feed of your blog to stay tuned. And the most they subscribe and come back to your blog, the greater will your blog grow and so will your fame and revenue.</p>
<p><strong>3. Interact with your visitors</strong> through fanatically responding to their comments. They will translate this into a welcome and will feel comfortable at your blog. Once you give them pleasure and make them feel important, you will have them come back, if not for your posts, for your good company. This is a good way to make keyboard (the time of pen is done) friends; remember. friends are there in good and bad times.</p>
<p><strong>4. Comment in other blogs</strong> of the same niche regularly and try to say as much worthy comments as you can. This will make you an authoritative commenter out there and curiosity will push more and more people to visit your blog through the link under your commenting name. This will bring you a good number of visitors, including the blog owners. The same as you do with your commenters, don&#8217;t you? As a matter of fact this is a social give-and-take relationship.</p>
<p><strong>5. Run a contest at your blog </strong>and give away some money, free ad space or something else valuable for bloggers. Make this in exchange to a blog post in their blog about the contest you are running or ask them to subscribe to RSS feeds or by email to your blog or both. This will boost your traffic and bring a lot of people at your blog. Remember, do not run a blog contest yet unless you have a good number of articles that visitors can browse through the content and not be the contest post the only post that they read.</p>
<p><strong>6. Get your blog reviewed</strong> by someone who has a niche blog and offers blog reviews. Make sure you ask this to someone who has a well-known blog and gets a lot of traffic. Don&#8217;t forget that generally you get what you give, so prepare for different prices in different authority blogs. This will bring to your blog a lot of traffic and brand your blog a little bit out there.</p>
<p><strong>7. Submit your blog into directories</strong> to have some extra traffic time and again by people interested in your niche. This is a good away to get traffic and it it mostly free, even though there are some payable directories. Choose what you think is best for you and submit.</p>
<p><strong>8. Blogrolling, link and banner exchanging</strong> is another great way to get traffic. While blogrolling might be a natural result of your good content and/or the good friendship you have with other bloggers, you can always ask blog owners in whose blogs you have an interest for link exchanging or banner exchanging. I would consider this a very good way of promotion and branding. Also there are several sites out there that offer banner exchange so prepare some banners for your blog and go hunt there for niche blogs.</p>
<p><strong>9. Use your blog URL in your signatures</strong> such as forum signatures and email ones. After you do that go posting in your preferred forums and reply to emails even to say thanks &#8211; thanking is virtue. This will be helpful.</p>
<p><strong>10. Make use of relevant keywords and description Meta tags</strong>. Go to your template files in which case 99% you will be using WordPress so go directly to header.php file and edit the META keyword and META description with the right info about your blog. This will help you get indexed in search engines. Also, when posting a new post, make sure to chose the most piquant keywords of the post and submit them to the tags field just below the post text area. The tags will be individually indexed by Google, isn&#8217;t this a great news.</p>
<p>Now move you lazy guy, get to work to implement these strategies and boost your traffic, your income and your authority out there. Good luck and do not even think to NOT give me a feedback of what you read here; this would be the implementation of strategy number 4, right?</p>
]]></content:encoded>
			<wfw:commentRss>http://wplancer.com/10-bulletproof-strategies-for-promoting-your-blog/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
	</channel>
</rss>

