<?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>Zemalf.comWordPress Tips | Zemalf.com</title> <atom:link href="http://zemalf.com/topics/wordpress/wordpress-tips/feed/" rel="self" type="application/rss+xml" /><link>http://zemalf.com</link> <description>Learn to Build Kick-Ass Websites the Hard Way</description> <lastBuildDate>Tue, 31 Jan 2012 04:46:31 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <item><title>WordPress Easter Egg &#8211; Spoiler free guide for finding it</title><link>http://zemalf.com/1395/wordpress-easter-egg/</link> <comments>http://zemalf.com/1395/wordpress-easter-egg/#comments</comments> <pubDate>Tue, 25 May 2010 14:13:21 +0000</pubDate> <dc:creator>Antti Kokkonen</dc:creator> <category><![CDATA[WordPress Tips]]></category> <category><![CDATA[Easter Egg]]></category> <category><![CDATA[Tips & Tricks]]></category> <category><![CDATA[WordPress]]></category><guid isPermaLink="false">http://zemalf.com/?p=1395</guid> <description><![CDATA[<p>Have you run into the WordPress easter egg? In case you haven't, I'll show you how to find it without spoiling the surprise and tell what the easter egg is</p><p><hr /><p>Original post from Zemalf's <a href="http://zemalf.com">Website optimization</a> blog:<br /> <a href="http://zemalf.com/1395/wordpress-easter-egg/">WordPress Easter Egg &#8211; Spoiler free guide for finding it</a></p></p>]]></description> <content:encoded><![CDATA[<p class="summary"><strong>Summary:</strong> Deep inside the WordPress core, there lies a hidden secret, an easter egg, waiting for bloggers to find it when they least expect it....</p><p>Unfortunately, no one can be told what the WordPress Easter Egg is.</p><p>You have to see it for yourself.</p><p><span id="more-1395"></span></p><h2>Easter Eggs in WordPress?</h2><p>Have you run into the WordPress easter egg? In case you haven't, I'll show you how to find it without spoiling the surprise and tell what the easter egg is.</p><p>This one has been in the WordPress for quite some time (since 2.6 I think), but not very many people even know it exists. And even less have found it.</p><p>When I watched the <a href="http://zemalf.posterous.com/matt-mullenweg-state-of-the-word-2010-video">State of the Word 2010 video</a> by Matt Mullenweg, he mentioned the easter egg in the video (as there are new surprises coming in the WordPress 3.0), so it was a good time to make a post about it...</p><h2>Is it secret? Is it safe?</h2><p>It is possible that you will run into this yourself, even that the circumstances that are required to find the easter egg are pretty rare... If you want to save the surprise, DO NOT read the rest of this post.</p><p>But I won't spoil the actual surprise by telling anything about the easter egg, just how you can find it. If you'd like to see how to find the hidden run in WordPress, scroll down...</p><p>(I added some white space and dots below for those who don't want to read how to find the WordPress easter egg)</p><p>.<br /> <br /> .<br /> <br /> .<br /> <br /> .<br /> <br /> .<br /> <br /> .<br /> <br /> .<br /> <br /> .<br /> <br /> .<br /> <br /> .<br /></p><p>This is the last chance to turn back if you don't want to know how to find the easter egg...</p><p>.<br /> <br /> .<br /> <br /> .<br /> <br /> .<br /> <br /> .<br /> <br /> .<br /> <br /> .<br /> <br /> .<br /> <br /> .<br /></p><p>OK, this is quite simple actually...</p><h2>The WordPress Easter Egg</h2><p>You need to have <a href="http://codex.wordpress.org/Revision_Management">WP Post Revisions</a> enabled. The revision management is ON by default, so unless you have specifically disabled them, you're good to go.</p><p>(As it is good practice to disable post revisions to <a href="http://zemalf.com/1434/optimize-wordpress-database/">optimize WordPress database</a>, it is possible that you have disabled them. In case you have disabled the post revisions, go enable them temporarily (in the wp-config.php), then continue)</p><p>To see what happens...</p><ul><li>Go to the Dashboard of your WordPress blog</li><li>Go to any post with revisions</li><li>On the Edit post screen... Scroll down to find the Post Revisions</li><li>Click on a revision (ignore the "restore" on the right)</li><li>On the revision preview screen, scroll down, and find the "Compare Revisions" part</li><li><strong>(1) Select the same revision</strong> on both columns, and</li><li><strong>(2) hit "Compare Revisions"</strong></li></ul><p><a href="http://en.wikipedia.org/wiki/Easter_egg_%28media%29"><img src="http://cdn.zemalf.com/wp-content/uploads/2010/05/WordPress-easter-egg.png" alt="WordPress easter egg WordPress Easter Egg   Spoiler free guide for finding it" title="WordPress Easter Egg=Compare one revision vs itself"  width="488" height="185" class="alignnone size-full wp-image-1396" /></a></p><p>There you go, now you know how...</p><p>Go try it out, I think that was pretty damn cool.</p><h2>Don't spoil the fun for others</h2><p>Please don't reveal the easter egg in the blog comments here - it's much more fun to see what happens without knowing what to expect...</p><p>You are, of course, free to share how to find the WordPress easter egg, like I have done here, so if you liked this post, I'd love to see you link back here and use the buttons below to bookmark and share this post with your WordPress using friends.</p> Here's more posts like to this:<ol><li><a href='http://zemalf.com/1152/wordpress-permalinks/' rel='bookmark' title='The Ultimate WordPress Permalinks Guide'>The Ultimate WordPress Permalinks Guide</a></li><li><a href='http://zemalf.com/1470/wordpress-htaccess-the-definite-guide/' rel='bookmark' title='WordPress htaccess: The Definite Guide'>WordPress htaccess: The Definite Guide</a></li><li><a href='http://zemalf.com/1163/top-free-wordpress-themes/' rel='bookmark' title='Top 27 Most Popular Free WordPress Themes'>Top 27 Most Popular Free WordPress Themes</a></li></ol><p><hr /><p>Original post from Zemalf's <a href="http://zemalf.com">Website optimization</a> blog:<br /> <a href="http://zemalf.com/1395/wordpress-easter-egg/">WordPress Easter Egg &#8211; Spoiler free guide for finding it</a></p></p>]]></content:encoded> <wfw:commentRss>http://zemalf.com/1395/wordpress-easter-egg/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> <item><title>You Don&#8217;t Have To Be a Web Designer to Build a Website</title><link>http://zemalf.com/1028/anyone-can-build-a-website/</link> <comments>http://zemalf.com/1028/anyone-can-build-a-website/#comments</comments> <pubDate>Fri, 07 Aug 2009 23:21:16 +0000</pubDate> <dc:creator>Antti Kokkonen</dc:creator> <category><![CDATA[WordPress Tips]]></category> <category><![CDATA[Build a Website]]></category> <category><![CDATA[Design]]></category> <category><![CDATA[Opinion]]></category> <category><![CDATA[Start a Blog]]></category> <category><![CDATA[WordPress]]></category><guid isPermaLink="false">http://zemalf.com/?p=1028</guid> <description><![CDATA[<p>Do you know that a blog can be just like any other website? And do you know that you can create "normal" website with WordPress instead of "just blogs"? Yeah, [...]</p><p><hr /><p>Original post from Zemalf's <a href="http://zemalf.com">Website optimization</a> blog:<br /> <a href="http://zemalf.com/1028/anyone-can-build-a-website/">You Don&#8217;t Have To Be a Web Designer to Build a Website</a></p></p>]]></description> <content:encoded><![CDATA[<p>Do you know that a blog can be just like any other website?<img src="http://cdn.zemalf.com/wp-content/uploads/2009/08/i-love-wordpress.png" alt="i love wordpress You Dont Have To Be a Web Designer to Build a Website" title="I Love WordPress!"  width="178" height="178" class="alignright size-full wp-image-1031" /></p><p>And do you know that you can create "normal" website with WordPress instead of "just blogs"?</p><p>Yeah, there's a lot to blogs and blogging that doesn't meet the eye and <strong>there's a whole lot more to WordPress than just blogging</strong> and blogs, just like there are incredible misconceptions around about blogs and what they are about..</p><p><span id="more-1028"></span></p><h3>How You Can Take WordPress Beyond Blogging</h3><p>First, you must understand that WordPress is much more than a "blogging tool" and that "blog" is not a diary that some teenage girl writes about her life.</p><p>Blogging is a way to share information and with WordPress you can do it without technical obstacles, so you can concentrate on the content, instead of technical tasks. Unlike many think, blogs are not just for someone to share their opinions and thoughts, e.g. online diary or log (thus, weblog) - a blog can be anything you want and over time it'll be hard to distinguish the difference between a blog and the website next to it..</p><p>Almost everyone thinks that blog is only some kind of "special" website, somehow different than a "normal" website.. Although this is probably true for the free blog publishing platforms like blogspot.com or WordPress.com, with self-hosted WordPress you can think beyond blogging - if you want. So in that sense, <strong>there is no difference between a blog and a website anymore</strong> (if there ever was)..</p><p>Even people aware of WordPress think of it as blogging platform, and don't think about the content management aspect. In <a href="http://wordpress.org" title="WordPress.org">WordPress.org</a>, the WordPress description starts with "<em>WordPress is a state-of-the-art <strong>publishing platform</strong></em>", but then the talk quickly jumps to blogging, which is kind of a shame as WordPress is much, much more!</p><ul><li>Need to set up a one page / sales page website? check.</li><li>Need to have Search Engine Optimized website from the start? check.</li><li>Need to set up a magazine like website? check.</li><li>Need to add new content easily and without any "computer skills"? check.</li><li>Need to have a great looking website with zero design by you? check.</li></ul><p>And the list goes on, the versatility, power and ease of use of WordPress doesn't stop to amaze me..</p><p>Yes, there's much more to these tools than just blogging - That's because WordPress, Joomla or even Blogger are content management systems first, blogging platforms second. If you ask me, you CAN and SHOULD build ALL YOUR WEBSITES with WordPress.</p><p>I can't recommend the other content management systems because I haven't used them, more and less because there has not been a reason for it, because <strong>WordPress is so good and best there is</strong>, in my opinion that is and according to pretty much all other probloggers out there.</p><p>If you for some reason choose another tool than WordPress, that can work equally well - as long as you're taking the step away from static websites towards modern days of content management and separate design, you're doing it right..</p><h3>You Don't Have To Be a Web Designer to Build a Website</h3><p>It doesn't matter if you're starting a blog, setting up a website or creating a one page sales page, do it with WordPress. It's free and very, very powerful content management tool that is way more than a blogging platform..</p><p><strong>WordPress  is THE EASIEST way to set up your very own website that you can be proud of</strong>. Setting up a website with WordPress is so easy that anyone can do it, and if you don't feel like it, there are plenty of reasonably priced persons out there that can set the foundation for your website fast.</p><p>Like said, do not think you MUST start a blog to use WordPress. Even if you're building "one-page" website, DO IT WITH WORDPRESS.</p><p><strong>You can have WordPress website running in 5 minutes</strong>, if you have a <a href="http://zemalf.com/resources/#domains" title="Check the domain registrars I recommend.">domain</a> and hosting already. If you don't, getting one takes about 15 minutes, depending on service provider, so let's say that you can have a website running in 30-60 minutes.</p><p>And if you ever need to edit ANYTHING, you can, without destroying the whole thing or paying someone a lot of money to tweak your website.</p><h3>Setting Up a Website in 7 Easy Steps</h3><ol><li><strong>Get your own hosting and <a href="http://zemalf.com/resources/#domains" title="Check the domain registrars I recommend.">register a domain</a></strong><ul><li><a href="http://zemalf.com/go/dreamhost" title="DreamHost - My Host and The Host I Recommend!">I recommend DreamHost</a>, the host I use and the host I've been extremely happy with them</li></ul></li><li><strong>Get WordPress installed</strong><ul><li>With <a href="http://zemalf.com/go/dreamhost" title="DreamHost - My Host and The Host I Recommend!">DreamHost</a>, and many other <a href="http://zemalf.com/resources/#hosting" title="Check the web hosting services I recommend.">hosting services</a>, you can install WordPress with one click!</li><li>If one-click-install is not available, you'll have to download and install WordPress yourself<ul><li>Not too hard, but unnecessary as your host really should have one-click service for you..</li></ul></li></ul></li><li><strong>Optimize the WordPress Settings and tweak the default settings</strong><ul><li>Use my <a href="http://zemalf.com/711/wordpress-settings-for-every-blog/" title="Perfect WordPress Settings for Every Blog">WordPress Settings for Every Blog</a></li></ul></li><li><strong>Install the <a href="http://zemalf.com/713/most-essential-wordpress-plugins/" title="The Most Essential WordPress Plugins">Essential WordPress Plugins</a></strong></li><li><strong>Get a WordPress Theme and activate it</strong><ul><li>At the start, use the <a href="http://zemalf.com/1163/top-free-wordpress-themes/">free WordPress themes</a> (thousands of them to choose from),</li><li>Get a customizable <a href="http://zemalf.com/resources/#premiumwordpressthemes">WP premium theme</a>, or</li><li>Get ready made one from <a href="http://zemalf.com/go/ubd" title="Unique Blog Designs - Pick a WP Theme You Like or Get One That's Truly Unique">Unique Blog Designs</a> or <a href="http://zemalf.com/go/studiopress​" title="StudioPress - Great WordPress Themes">StudioPress</a>.</li></ul></li><li><strong>Create Content</strong><ul><li>e.g. Write a Post or Create a Page.</li></ul></li><li><strong>Publish</strong></li></ol><p>See - Building a website isn't very hard when you look at it in small chunks and not as gigantic operation you must plan carefully..</p><p>And if you want to concentrate on creating content, get someone to set the site up for you (just remember that setting up a website doesn't cost thousands of dollars!) and keep writing content that you can add right away when the website is up and running.</p> Here's more posts like to this:<ol><li><a href='http://zemalf.com/1027/do-not-build-static-web-pages/' rel='bookmark' title='Warning: If You Still Build Your Webpages With FrontPage, You Are Doing It Wrong!'>Warning: If You Still Build Your Webpages With FrontPage, You Are Doing It Wrong!</a></li><li><a href='http://zemalf.com/1332/learning-internet-business/' rel='bookmark' title='Learning How to Build Your Own Website Teaches You More Than Just That!'>Learning How to Build Your Own Website Teaches You More Than Just That!</a></li><li><a href='http://zemalf.com/1029/dont-pay-to-much-for-static-websites/' rel='bookmark' title='Don&#8217;t Pay Too Much for Static Websites'>Don&#8217;t Pay Too Much for Static Websites</a></li></ol><p><hr /><p>Original post from Zemalf's <a href="http://zemalf.com">Website optimization</a> blog:<br /> <a href="http://zemalf.com/1028/anyone-can-build-a-website/">You Don&#8217;t Have To Be a Web Designer to Build a Website</a></p></p>]]></content:encoded> <wfw:commentRss>http://zemalf.com/1028/anyone-can-build-a-website/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>How To Add Google Custom Search to Your Blog</title><link>http://zemalf.com/917/how-to-add-google-custom-search-to-your-blog/</link> <comments>http://zemalf.com/917/how-to-add-google-custom-search-to-your-blog/#comments</comments> <pubDate>Sat, 13 Jun 2009 20:00:48 +0000</pubDate> <dc:creator>Antti Kokkonen</dc:creator> <category><![CDATA[WordPress Tips]]></category> <category><![CDATA[Hints & Tips]]></category> <category><![CDATA[How]]></category> <category><![CDATA[WordPress]]></category><guid isPermaLink="false">http://zemalf.com/?p=917</guid> <description><![CDATA[<p>This post is a rework to my old Combine Google Custom Search with the Default WordPress Search -article where I combined Google Custom Search with WordPress Regular search results. I do [...]</p><p><hr /><p>Original post from Zemalf's <a href="http://zemalf.com">Website optimization</a> blog:<br /> <a href="http://zemalf.com/917/how-to-add-google-custom-search-to-your-blog/">How To Add Google Custom Search to Your Blog</a></p></p>]]></description> <content:encoded><![CDATA[<p>This post is a rework to my old <a href="http://zemalf.com/337/how-to-combine-google-custom-search-and-adsense-with-the-default-wordpress-search/">Combine Google Custom Search with the Default WordPress Search</a> -article where I combined Google Custom Search with WordPress Regular search results.</p><p>I do this because, <strong>it is better to show that you are using Google Custom Search instead of making the search look like it is <em>not</em> Google Search</strong>. This will show your readers that they are about to enter Google Custom Search so the possible advertisement doesn't surprise them. It might be that the Google terms and conditions for AdSense for Search states that it is forbidden to "camouflage" the search to look like normal search, but I didn't check if it is so.</p><p>I didn't need to check, because <strong>there is <a href="http://www.problogdesign.com/wordpress/does-google-custom-search-get-more-searches-than-regular-wordpress-search/" title="Does Google Custom Search Get More Searches than Regular WordPress Search?">proof that Google Custom Search is used MORE than the regular WordPress search</a></strong> (at problogdesign.com) and as we know that, <strong>we don't want to hide the fact that it is Google search</strong>, right?</p><p><span id="more-917"></span></p><h2>How To Get Google Custom Search for Your Blog</h2><p>Create the form in the Google AdSense:</p><ul><li> Select to show the results in your own web page</li><li> Choose to only search from certain sites</li><li> Add your domain to the list of domains to search from and add "*" to the end<ul><li> e.g. zemalf.com/*</li></ul></li><li> Customize the form by selecting style and colors that fit your blog</li><li> Set the result page as http://your_domain_name.com/index.php?<ul><li> e.g. http://zemalf.com/index.php?</li></ul></li><li> Add the Google Custom Search form code to your blog, either directly to theme or through widget/plugin</li><li> Add the Google Custom Search results code to the search.php</li></ul><h2>How To Add the Google Custom Search Box to Your Blog</h2><ul><li>Add text-widget to your sidebar,</li><li>Add the search code directly to your them (replacing the old search form there is), or</li><li>Install a Google Custom Search -plugin</li></ul><p>I recommend that you either use a text widget or , as it is good to minimize the need of plugins in your blog to maximize performance and compatibility when WP is upgraded.</p><h2>How To Add Google Custom Search without a Plugin</h2><ul><li>Add the custom search form code to a text widget or your theme:</li></ul><p>The Google Custom Search form code looks something like this (the partner id will be your own of course):</p><pre>&lt;form action="http://your_domain_name.com/index.php?" id="cse-search-box"&gt;
&lt;div&gt;
&lt;input type="hidden" name="cx" value="partner-pub-1234567890123456:abcde1-8uf8" /&gt;
&lt;input type="hidden" name="cof" value="FORID:10" /&gt;
&lt;input type="hidden" name="ie" value="UTF-8" /&gt;
&lt;input type="text" name="q" size="31" /&gt;
&lt;input type="submit" name="sa" value="Search" /&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;amp;lang=en"&gt;&lt;/script&gt;</pre><p>Copy the code you get after creating the custom search and add it to your theme or text widget.</p><h2>How To Add the Google Custom Search Results Code</h2><p>To display the search results on your own blog and fitting to your WP theme, you need to edit the search.php file.</p><ul><li>Add the Search Results Code to the search.php:</li></ul><pre>&lt;div id="cse-search-results"&gt;&lt;/div&gt;
&lt;script type="text/javascript"&gt;
var googleSearchIframeName = "cse-search-results";
var googleSearchFormName = "cse-search-box";
var googleSearchFrameWidth = 800;
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
&lt;/script&gt;
&lt;script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"&gt;&lt;/script&gt;</pre><p>The most simple search.php can only have the search results code in it, or you can add your theme's header and footer in it.</p><pre>&lt;?php get_header(); ?&gt;
*GOOGLE SEARCH RESULTS CODE IS HERE*
&lt;?php get_footer(); ?&gt;</pre><p>If you want to have the WordPress regular search results on the same page (search.php) with the Google Custom Search Results, you can edit the custom search form like this you can do that too..</p><h2>How To Combine Google Custom Search with Regular WordPress Search</h2><ul><li>Add hidden type "text" with name "s" to the form</li><li>Edit the form tag and add name for the form + javascript code to copy the search terms from "q" to "s"<ul><li>"s" is what WP uses to pass the search terms to the search.php</li></ul></li></ul><p><strong>In the Google Custom Search Box code,</strong></p><p><strong>REPLACE:</strong></p><pre>&lt;/div&gt;</pre><p><strong>WITH:</strong></p><pre>&lt;input type="hidden" name="s" value="" /&gt;
&lt;/div&gt;</pre><p><strong>and, REPLACE:</strong></p><pre>&lt;form action="http://zemalf.com/index.php?" id="cse-search-box"&gt;</pre><p><strong>WITH: </strong><em>(all can be in the same line)</em></p><pre>&lt;form
  action="http://zemalf.com/index.php?"
  id="cse-search-box"
  name="searchform"
  onsubmit="document.searchform.s.value = document.searchform.q.value" &gt;</pre><p>..so we added the last to lines (name and onsubmit) to the form-tag, these copy the search term from "q" to "s". On the results page, the "q" is used to display the Google Custom Search results and the WordPress default "s" to display the regular results.</p><p>If you want to customize the colors of the search box or the results, you can edit the custom search properties in your Google AdSense "manage ads" control panel, so there is not need to edit the search box code or search results after you include them once.</p><p>If you have any questions or problems getting Google Custom Search to your blog, leave a comment or send me your question and problems through the contact form (on the contact -page)</p> Here's more posts like to this:<ol><li><a href='http://zemalf.com/337/how-to-combine-google-custom-search-and-adsense-with-the-default-wordpress-search/' rel='bookmark' title='How To Combine Google Custom Search and AdSense with the Default WordPress Search'>How To Combine Google Custom Search and AdSense with the Default WordPress Search</a></li><li><a href='http://zemalf.com/539/wordpress-xml-sitemap/' rel='bookmark' title='How To Add a XML Sitemap to WordPress Blog'>How To Add a XML Sitemap to WordPress Blog</a></li><li><a href='http://zemalf.com/501/how-to-add-category-and-tag-based-advertising-and-content-to-your-blog/' rel='bookmark' title='How To Add Category and Tag Based Advertising and Content to Your Blog'>How To Add Category and Tag Based Advertising and Content to Your Blog</a></li></ol><p><hr /><p>Original post from Zemalf's <a href="http://zemalf.com">Website optimization</a> blog:<br /> <a href="http://zemalf.com/917/how-to-add-google-custom-search-to-your-blog/">How To Add Google Custom Search to Your Blog</a></p></p>]]></content:encoded> <wfw:commentRss>http://zemalf.com/917/how-to-add-google-custom-search-to-your-blog/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Bulk Edit Posts, Categories and Tags on Your WordPress Blog</title><link>http://zemalf.com/597/bulk-edit-posts-categories-and-tags-on-your-wordpress-blog/</link> <comments>http://zemalf.com/597/bulk-edit-posts-categories-and-tags-on-your-wordpress-blog/#comments</comments> <pubDate>Thu, 04 Jun 2009 09:04:01 +0000</pubDate> <dc:creator>Antti Kokkonen</dc:creator> <category><![CDATA[WordPress Tips]]></category> <category><![CDATA[Blogger Import]]></category> <category><![CDATA[Guide]]></category> <category><![CDATA[How-To]]></category> <category><![CDATA[SEO]]></category> <category><![CDATA[WordPress]]></category><guid isPermaLink="false">http://zemalf.com/?p=597</guid> <description><![CDATA[<p>Mass editing posts on WordPress can be very hard if you do it all manually and one-by-one, but fortunately built-in functionality in the WordPress and additional help from plugins will [...]</p><p><hr /><p>Original post from Zemalf's <a href="http://zemalf.com">Website optimization</a> blog:<br /> <a href="http://zemalf.com/597/bulk-edit-posts-categories-and-tags-on-your-wordpress-blog/">Bulk Edit Posts, Categories and Tags on Your WordPress Blog</a></p></p>]]></description> <content:encoded><![CDATA[<p>Mass editing posts on WordPress can be very hard if you do it all manually and one-by-one, but fortunately built-in functionality in <strong>the WordPress and additional help from plugins will help the bulk edit process</strong>. If you need to do heavy re-categorizing or re-tagging your posts, <strong>this article will give you the tools and tips to do it with reasonable effort and keep your old backlinks in order while at it</strong>.</p><p>In this post, <strong>how to edit many posts at the same time and define categories and tags for multiple posts</strong>:</p><ul><li>What To Do Before Starting the Mass Edit</li><li>What Plugins Should Be Installed to Help the Bulk Edit Process</li><li>How the Bulk Edit Works in WordPress (versions 2.7+)</li><li>How To Handle Massive Amount of Posts and Change Categories and Tags on Them</li></ul><p>If you have done or planning a Blogger-WordPress import, you more and less have to do this kind of heavy editing of your posts, as the Blogger / blogspot tags are imported as categories. You can easy this process by removing and editing the tags in the Blogger before you do the import, but with the user interface there, it might actually be easier to do it like I show in this guide by removing the old categories and tags all together and re-categorize and re-tag your whole blog.</p><p>Whether you are moving or moved from old blog to self-hosted WordPress or you are planning to re-organize your blog by rethinking the categories and tags you use and need advice and tips on editing large amounts of posts in your WordPress blog in general, read on...<br /> <span id="more-597"></span></p><h2>Categories and Tags in WordPress</h2><p>Categories and tags have several functions in WordPress: They <strong>help you and your readers to find the posts with ease</strong> (or make it very hard to find posts if not done properly). In addition to <strong>making your blog more navigable</strong>, proper categorizing and tagging can make <strong>search engines index your site better</strong> and thus, help to bring more <strong>traffic to your blog</strong>.</p><p>If you have just started or are just about to start a new blog, before you begin writing posts to your blog, you should think about how you will categorize and tag your posts. The usual problem is that at the start you might not have a clear idea what kind of categories you should use, and you should place some word as category or tag, etc.</p><p>So if you have not categorized or tagged your posts the way you think you should have and you want to change your categories and/or tags later, YOU CAN, so no worries. With large amounts of posts it can take a bit of time, but when done right, it will definitely help the readers to navigate and the search engines to index your site.</p><p>If you have imported your old blog or blogs to the WordPress from Blogger / blogspot, like I did, you more and less HAVE TO re-categorize and tag all the imported posts (as the import function places Blogger tags as categories in WordPress). You need to do this just to clarify the structure of your blog with simple categories and clear tagging strategy. If you have imported from WordPress.com the categories and tags should remain, but you could still re-plan and edit them if you like.</p><p>Whatever your reason to re-categorize and re-tag is, when you want to change your categories and/or tags in large amounts, you need to do some bulk / mass editing...</p><h2>Before You Start Bulk Edit of Your Posts</h2><h3>Define new Permalink structure for your blog</h3><p class="alert">NOTE: When importing from a old blog, for example WordPress.com or Blogger / blogspot, define the permalink structure <strong>BEFORE the import!</strong></p><p>If you want to change your permalink structure, do it before you start editing and updating the posts, and go "refresh" it when you're all done. You can use any permalink structure you want, and it might depends on your blog, but for most blogs the "YEAR/MONTH/DATE" permalink structure isn't the best possible one, not to even mention the default "?P=123" or the "ARCHIVES/123" -structures.</p><p>Date-based permalinks are great for blogs that have time-related content. But if your blog is more timeless and information based, you can consider other options as well. But always include the %postname% in the permalink structure.</p><p>Use some time to check the <a href="http://zemalf.com/1150/best-permalink-structure/" title="Quest for the Best Permalink Structure">best permalink structure</a> for your blog, and then choose from these</p><ul><li>/%postname%/</li><li>/%post_id%/%postname%/</li><li>/%year%/%month%/%day%/%postname%/</li><li>/%category%/%postname%/</li></ul><p>While you are in the Permalink Settings, set the OPTIONAL custom structures for category and tag URLs. I use "topics" for category base and "tags" for tag base, but the defaults will be ok in most cases. These base-names will be in front of individual category or tag slug in the archives.</p><p>Note that if you use this kind of category-postname permalink structure and you're also using "child-categories", your posts will linked both in the child category and parent-child kind of structures. Because of this, you should use parent/child categories, if you have the %category% in the permalink settings. Also, only set one category for each posts and use multiple tags instead.</p><p>For example you have a category called "Blogging" and child-category under it called "WordPress". You write a post "I rock!" and file it under "WordPress". The post will have "main" permalink in /blogging/wordpress/i-rock/ but it will also be filed /blogging/i-rock/, again producing possible double content on your site. This might change in the future versions of WordPress, but at least for me, this seems to be the case in WordPress 2.7.x.</p><h3>Install these beneficial plugins to automate maintenance tasks before editing your posts</h3><p>When editing the posts, you don't want to lose the backlinks and want to make sure people coming through the backlinks to your blog find the newly linked posts.</p><p>You should also decide if you want to use tags as your *only* way of structure on your site, you would probably be better off when you prevent your categories from being indexed. Or the other way around, if you want to use tags as the *only* way of structure, prevent your tags from being indexed with noindex settings. This matter has not been researched too much, so it is ok to let both categories and tags indexed, but some experts in Search Engine Optimization think that indexing them both might hurt your ranking in search engines because of the double content.</p><p>To handle the redirecting to the new permalinks and the noindexing of either tags or categories, if you decide to use that, these are the best pluging I've come across to handle those matters:</p><h4><a href="http://urbangiraffe.com/plugins/redirection/" title="Manage all your 301 redirects and monitor 404 errors with the Redirection plugin">Redirection -plugin</a></h4><p>Redirection will manage all your 301 redirects and monitor 404 errors. You can use Redirection for link masking and set your custom redirects, but the real benefit of the plugin when editing your posts is that <strong>Redirection -plugin automatically creates redirect from the old permalink to the new one when you edit the your posts permalink or the permalink structure</strong>! If you are not using categories or tags in the permalink, you don't need this, but install Redirection plugin anyway, because if you happen to change your permalink structure, you don't have to think about the redirection issues as they are all done automatically. So all the links you have for your posts will still work and people coming through the backlinks will be redirected to the new permalink. And you don't have to do anything else but to install this plugin. It's a kind of magic!</p><h4><a href="http://semperfiwebdesign.com/" title="All in One SEO Pack - Automatically make your blog &quot;Seach Engine friendly&quot;">All in One SEO Pack</a></h4><p>You should have this on your blog anyway, but if you don't go install it, it will do a great deal for your site in terms of search engine visibility.</p><p>In category and tag editing context, you should check the noindex -settings in the All in One SEO Pack: This is useful for avoiding duplicate content.</p><p>By setting this you can decide what is the main way you structure your site, and disable indexing for the other:</p><ul><li>Use noindex for Categories</li><li>Use noindex for Archives</li><li>Use noindex for Tag Archives</li></ul><p>Similar functionality with noindexing can also be found from Robots Meta -plugin (http://yoast.com/wordpress/robots-meta/), and it has additional functions for robots ("commands" for search engines) in addition to the noindex -settings for tags and categories, for example disabling the author archive might be worth it, if you are the only user and blogger in your blog. So I recommend that you install both, Robots Meta and All in One SEO Pack to your blog.</p><p>Now you have all the preparation done for bulk editing your posts:</p><ul><li>Permalink structure re-defined if necessary</li><li>Redirection -plugin installed to automatically handle redirections to the new permalinks</li><li>All in ONE SEO and Robots Meta -plugins handling the noindexing for robots -definitions if you decide to focus how your site is indexed to either tags or categories.</li></ul><p>After the above is in order, you are ready to start editing your posts..</p><h2>Integrated Mass Edit in WordPress 2.7 and onwards</h2><p><a href="http://www.aaronharp.com/dev/wp-manageable/" title="Now integrated with WordPress: Manageable plugin to help managing large amounts of posts">Manageable</a> -plugin has been integrated into the WordPress when 2.7 was released.</p><h2>How the Bulk Edit works</h2><ol><li>Go to the "Posts" and "Edit".</li><li>Select any number of posts from the "Edit Posts" page</li><li>Select "Edit" from the "Bulk Actions" pull-down menu</li><li>Click Apply</li></ol><p>From the "Bulk Edit Posts" -menu: Add Categories, Tags and other attributes to all those posts at the same time.</p><p class="alert">The problem with Bulk Edit is that you can only <strong>ADD</strong> categories and tags, you cannot remove them.</p><p>Bulk Edit will help you adding new categories and tags to many posts, but this won't help with managing too complicated category-/tag-tweaking, which is especially needed when handling hundreds or thousands of posts imported from old blog, like Blogger, for example.</p><p>The solution is to remove the unwanted categories and tags (something you probably want to do anyway, when re-categorizing and re-tagging your blog)</p><h2>More Advanced Category and Tag Editing of Huge Amount of Posts</h2><p>If you have a lot of posts to go through that don't have very descriptive titles, mass editing your posts can take a long time, but it's worth it. After cleaning up the old categories and tags, and editing the new category and tags into the posts, your WordPress blog will have much cleaner navigation and archive structure which will help both you and your readers to navigate the posts more easily.</p><p>The most simple solution is to handle the categories and tags for large amounts of posts is first removing all tags and categories you already have, and then adding the new tags and categories into the posts with the bulk edit.</p><h3><strong>REMOVE ALL</strong> tags and categories you have on your blog.</h3><p>To remove and edit the tags:</p><ol><li>GO TO the Tags page (Posts &gt;&gt; Tags screen)</li><li>SELECT all tags by clicking the checkbox over all the tags</li><li>CHOOSE Delete from the "Bulk Actions" pull-down menu</li><li>CLICK APPLY</li><li>CONFIRM THE DELETE</li></ol><p>Tags page only shows 20 or so tags on one page, so repeat until you have all tags deleted.</p><p>If you imported your posts from Blogger, you don't have any Categories in, apart from the default ones or the ones you have already added.</p><p>To remove and edit the categories:</p><ol><li><strong>DELETE the old categories using the same process</strong> and then</li><li><strong>ADD new ones from the Category-page</strong>.</li></ol><p>After <strong>CLEANING the old tags and categories, </strong>go to the Edit Posts -page, and</p><h3>ADD Categories and Tags using the Bulk Edit Posts -function</h3><p>Before you start editing, go add new categories in the Category edit -page, if you didn't do that yet.</p><ol><li>Go to the "Posts" and "Edit".</li><li>Select any number of posts from the "Edit Posts" page</li><li>Select "Edit" from the "Bulk Actions" pull-down menu</li><li>Click Apply</li><li>Choose Category for all the chosen posts</li><li>Add Tags for all the chosen posts</li><li>Set other options if necessary (usually not)</li><li>Click Apply</li><li>Repeat for more posts</li></ol><h2>Why you should have a clear category and tag structure on your blog</h2><p>First, it helps you when you're writing new content as you immediately know what ONE Category the posts should go to, or if there is no clear category, you know to add one. And adding Tags to your posts should become a second nature when you have a good selection of tags already created and you know what kind of posts and content you have tagged with each tag.</p><p>Editing large amount of posts might be bit labor intensive, but how I handled it was that I simplified the categorizing and tagging a great deal when I edited my posts imported from blogger. So I only used ONE CATEGORY for posts - this is very useful for SEO and linking practises on your blog as it avoids double content and post having several permalinks if you're using /%category%/%postname%/ permalink structure. And for the imported blogger posts, I simply added one or two tags per post and later went through all the posts and added more if I felt that post needed more tags so the posts could be found more easily.</p><p>The most important thing about categories and tags is that you use them consistently, so posts related to each other have common category and you can supplement that with tagging. Usually 2-8 tags per post works well. And always remember to optimize all this, categories, posts, tags and your blog for your readers. Search engine optimization will follow through.</p><h2>Afterword on Mass Editing Your Posts, Choosing Categories and Tags for Your blog, etc.</h2><p>Thinking through and choosing the right categories and tags for your blog is important. With this guide you can edit your old blogs categories and tags by mass editing the posts, and here's further reading to help you to improve your categorizing, tagging and deciding the categories and tags for your blog:</p><h3>Additional Resources on Categories and Tags:</h3><ul><li><a href="http://www.problogger.net/archives/2008/10/03/how-to-choose-categories-for-your-blog/" title="How to Choose Categories for Your Blog">How to Choose Categories for Your Blog</a> @Problogger.net</li><li><a href="http://www.problogger.net/archives/2006/02/27/tag-youre-it-leveraging-tagging-for-your-blog/">Tag, You’re It! Leveraging Tagging For Your Blog</a> @Problogger.net</li><li><a href="http://www.problogger.net/archives/2007/09/27/using-categories-and-tags-effectively-on-your-blog/" title="Using Categories and Tags Effectively on Your Blog by Michael Martin">Using Categories and Tags Effectively on Your Blog @Problogger.net</a>, Guest Post by Michael Martin (<a href="http://www.problogdesign.com/" title="Pro Blog Design">Pro Blog Design</a>).</li><li><a href="http://blogs.msdn.com/jmeier/archive/2008/03/10/tags-vs-categories.aspx" title="Tags vs Categories">What's the difference between tags vs. categories in your blog?</a> @J.D. Meier's Blog</li><li><a href="http://lorelle.wordpress.com/2006/03/07/putting-some-thought-into-blog-categories-and-tags/" title="Putting Some Thought Into Blog Categories and Tags">Putting Some Thought Into Blog Categories and Tags</a> @Lorelle on WordPress</li></ul><p>That's all, I hope you found this article helpful and again, share your thoughts, ask your questions or give me feedback on this article by <strong>leave a comment</strong>.</p> Here's more posts like to this:<ol><li><a href='http://zemalf.com/501/how-to-add-category-and-tag-based-advertising-and-content-to-your-blog/' rel='bookmark' title='How To Add Category and Tag Based Advertising and Content to Your Blog'>How To Add Category and Tag Based Advertising and Content to Your Blog</a></li><li><a href='http://zemalf.com/394/posting-source-code-on-your-wordpress-blog-posts/' rel='bookmark' title='Posting Source Code on Your WordPress Blog Posts'>Posting Source Code on Your WordPress Blog Posts</a></li><li><a href='http://zemalf.com/959/how-i-pushed-my-blog-from-pagerank-0-to-pr4-in-37-days/' rel='bookmark' title='How I Pushed My Blog from PageRank 0 to PR4 in 37 Days'>How I Pushed My Blog from PageRank 0 to PR4 in 37 Days</a></li></ol><p><hr /><p>Original post from Zemalf's <a href="http://zemalf.com">Website optimization</a> blog:<br /> <a href="http://zemalf.com/597/bulk-edit-posts-categories-and-tags-on-your-wordpress-blog/">Bulk Edit Posts, Categories and Tags on Your WordPress Blog</a></p></p>]]></content:encoded> <wfw:commentRss>http://zemalf.com/597/bulk-edit-posts-categories-and-tags-on-your-wordpress-blog/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Track Outgoing Links with Google Analytics</title><link>http://zemalf.com/549/track-outgoing-links-with-google-analytics/</link> <comments>http://zemalf.com/549/track-outgoing-links-with-google-analytics/#comments</comments> <pubDate>Mon, 01 Jun 2009 04:38:59 +0000</pubDate> <dc:creator>Antti Kokkonen</dc:creator> <category><![CDATA[WordPress Tips]]></category> <category><![CDATA[Analytics]]></category> <category><![CDATA[Plugins]]></category> <category><![CDATA[Tracking]]></category> <category><![CDATA[WordPress]]></category><guid isPermaLink="false">http://zemalf.com/?p=549</guid> <description><![CDATA[<p>Most blogs have outgoing links which the readers click to go to the resources you've recommended or linked for other reason. With Google Analytics you can track those outgoing links [...]</p><p><hr /><p>Original post from Zemalf's <a href="http://zemalf.com">Website optimization</a> blog:<br /> <a href="http://zemalf.com/549/track-outgoing-links-with-google-analytics/">Track Outgoing Links with Google Analytics</a></p></p>]]></description> <content:encoded><![CDATA[<p>Most blogs have outgoing links which the readers click to go to the resources you've recommended or linked for other reason. With <a href="https://www.google.com/analytics/" title="Google Analytics">Google Analytics</a> you can track those outgoing links very easily.</p><p>With special attributes on your page and links, you not only get the normal Google Analytics data, you also get advanced data in a form of outgoing links and tracking those links.</p><p>Don't worry, it's very easy! This one is actually so easy to setup, anyone who can install a plugin to WordPress can do it! (just in case, all instructions you need are here on our previous article: <a href="http://zemalf.com/551/adding-google-analytics-to-your-wordpress-blog/" title="Adding Google Analytics to Your WordPress Blog">Adding Google Analytics to Your WordPress Blog</a>)</p><p><span id="more-549"></span></p><p>With the Google Analytics for WordPress -plugin, you have to do any javascript coding, as the plugin does all the work for you automatically and by default. If you don't have Google Analytics running on your blog yet, go do it now.</p><p>The easiest way to achieve this is installing the <a href="http://yoast.com/wordpress/analytics/" title="Visit Google Analytics for WordPress -plugin homepage">Google Analytics for WordPress</a> -plugin. First, <a href="http://zemalf.com/1278/set-up-google-analytics/" title="How to set up Google Analytics account">set up Google Analytics</a> account if you haven't, and proceed into <a href="http://zemalf.com/551/adding-google-analytics-to-your-wordpress-blog/" title="Adding Google Analytics to Your WordPress Blog">adding Google Analytics to your WordPress Blog</a>.</p><p><img src="http://cdn.zemalf.com/wp-content/uploads/2009/05/google-analytics-for-wordpress-plugin-configuration.png" alt="google analytics for wordpress plugin configuration Track Outgoing Links with Google Analytics" title="Google Analytics for WordPress -plugin configuration"  width="580" height="323" class="alignnone size-full wp-image-1291" /></p><h2>Tracking outgoing links</h2><p>If you have the Google Analytics for WordPress -plugin installed, this is all done automatically for you, but I'll take you through how the link tracking actually works...</p><p>The magic happens in the Google Analytics for WordPress -plugin: take a look at the advanced settings by clicking the checkbox for "<em>Show advanced settings</em>".  You don't have to change any of the settings, but take a look at the "<em>prefixes for outgoing clicks</em>"</p><p>by default these are:<br /> <code>/outbound/article<br /> /outbound/comment<br /> /outbound/commentauthor<br /> /outbound/blogroll</code></p><p>Now you can untick the advanced settings checkbox. Note: If you're going to make changes here, make the changes for a reason, and as the plugin text states: only adviced for advanced users who know their way around Google Analytics.</p><p>The Google Analytics for WordPress -plugin adds javascript "onclick" properties to the outgoing links using the defined advanced settings prefixes. The plugin adds the domain or the full link (defined in the settings of the plugin) after the prefix. For example, the <a href="https://www.google.com/analytics/" title="Google Analytics">Google Analytics</a> links on this article, get this kind of addition on them:</p><pre>onclick="javascript:pageTracker._trackPageview('/outbound/article/www.google.com');"</pre><p>To see how these show up in your Google Analytics, we need to go and check inside the Google Analytics...</p><h2>Looking at the outgoing links inside Google Analytics</h2><p>After having the Google Analytics for WordPress -plugin running on your blog for a while, you've probably had some of your readers click on the outgoing links you have provided in the articles, links, sidebar or the links in comments and trackbacks.</p><p>1) Go to your Google Analytics dashboard by clicking the website profile<br /> 2) Check the bottom right for "<em>Content Overview</em>"<br /> 3) Click "<em>view report</em>"<br /> 4) On the "Content Overview" page, scroll down a bit if needed and click on the "<em>view full report</em>"<br /> 5) Look for /outbound/ "Pages" and you see what outgoing links the users are clicking to move away from your site.</p><p>For example:</p><p><code>/outbound/article/technorati.com<br /> /outbound/article/www.google.com<br /> /outbound/article/www.youtube.com</code></p><p>Now that you have these stats, it's up to you how you want to utilize them, but at this level, you're already getting more data for your traffic which is always great.</p><p>For bit more advanced Google Analytics usage and if your blog is designed to direct readers to certain links, you can set Google Analytics <em>Goals</em> for these outgoing links (e.g. your salespage on a different <a href="http://zemalf.com/resources/#domains" title="Check the domain registrars I recommend.">domain</a>, or such).</p><p>Using this kind of outgoing link tracking will increase your <em>Pageviews</em>, which is ok as getting the data where readers are going is now in your hands. If you have run your blog without tracking, remember this when analysing your data.</p><p>Until next time, enjoy your new data and statistics!</p> Here's more posts like to this:<ol><li><a href='http://zemalf.com/551/adding-google-analytics-to-your-wordpress-blog/' rel='bookmark' title='Adding Google Analytics to Your WordPress Blog'>Adding Google Analytics to Your WordPress Blog</a></li><li><a href='http://zemalf.com/1278/set-up-google-analytics/' rel='bookmark' title='How to set up Google Analytics'>How to set up Google Analytics</a></li><li><a href='http://zemalf.com/1387/optimized-async-analytics/' rel='bookmark' title='Optimized Google Analytics asynchronous tracking code'>Optimized Google Analytics asynchronous tracking code</a></li></ol><p><hr /><p>Original post from Zemalf's <a href="http://zemalf.com">Website optimization</a> blog:<br /> <a href="http://zemalf.com/549/track-outgoing-links-with-google-analytics/">Track Outgoing Links with Google Analytics</a></p></p>]]></content:encoded> <wfw:commentRss>http://zemalf.com/549/track-outgoing-links-with-google-analytics/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>How To Add a XML Sitemap to WordPress Blog</title><link>http://zemalf.com/539/wordpress-xml-sitemap/</link> <comments>http://zemalf.com/539/wordpress-xml-sitemap/#comments</comments> <pubDate>Fri, 29 May 2009 12:34:03 +0000</pubDate> <dc:creator>Antti Kokkonen</dc:creator> <category><![CDATA[WordPress Tips]]></category> <category><![CDATA[Navigation]]></category> <category><![CDATA[Plugins]]></category> <category><![CDATA[Readability]]></category> <category><![CDATA[SEO]]></category> <category><![CDATA[Sitemap]]></category> <category><![CDATA[WordPress]]></category><guid isPermaLink="false">http://zemalf.com/?p=539</guid> <description><![CDATA[<p>XML sitemap will help search engines to find and index your WordPress blog and keep your indexed pages up to date. With a plugin this takes no effort</p><p><hr /><p>Original post from Zemalf's <a href="http://zemalf.com">Website optimization</a> blog:<br /> <a href="http://zemalf.com/539/wordpress-xml-sitemap/">How To Add a XML Sitemap to WordPress Blog</a></p></p>]]></description> <content:encoded><![CDATA[<p>You want two kind of sitemaps on your blog. One for search engines and another one for your readers. Both can be very easily implemented into the WordPress blog with plugins in matter of minutes.</p><p>The sitemap for search engines will help search engines to find and index your site/ blog and keep your listing and information up-to-date with your latest content and inform about the changes in your blog structure with zero effort. The sitemap for your readers is optional compared to the sitemap for the search engines, but that too takes only couple of minutes and can potentially help your readers navigate your site better.</p><p>In addition to explaining what a sitemap is, in the rest of this article I'll show you:</p><ul><li>How to setup and install a plugin on your WordPress that generates the XML sitemap for search engines for you</li><li>How to install another plugin that automatically generates a sitemap for your readers anywhere you want to display it on your blog.</li></ul><p><span id="more-539"></span><strong>What are Sitemaps?</strong></p><p>Like said, you can and should have two sitemaps on your site, one for the search engines and another one for your readers. The sitemap for Search Engines is arguably the more important one, as it helps the search engines to index your site. And <em>it takes one minute or less to install the plugin that does all the search engine sitemap work for you</em>, so you definately *must* install it, as it only servers you well after you've done it...</p><p><strong>XML Sitemap for Search Engines</strong></p><blockquote><p>Sitemaps are an easy way for webmasters to inform search engines about pages on their sites that are available for crawling. In its simplest form, a Sitemap is an XML file that lists URLs for a site along with additional metadata about each URL (when it was last updated, how often it usually changes, and how important it is, relative to other URLs in the site) so that search engines can more intelligently crawl the site... ...Using the Sitemap protocol does not guarantee that web pages are included in search engines, but provides hints for web crawlers to do a better job of crawling your site. -<a href="http://www.sitemaps.org/" title="sitemaps.org">sitemaps.org</a></p></blockquote><blockquote><p>Note: The XML-Sitemap format was introduced in 2005 by Google and adopted in 2006 by YAHOO, MSN Search and Ask.com so thats why it’s often called "Google Sitemaps". -<a href="http://www.arnebrachhold.de/projects/wordpress-plugins/google-xml-sitemaps-generator/">Google (XML) Sitemaps Generator for WordPress</a></p></blockquote><p>As explained, to help Search Engines find your blog and website, you want to have XML sitemap on your site. <a href="http://www.arnebrachhold.de/redir/sitemap-home/" title="Visit plugin homepage">Google XML Sitemaps</a> -plugin does this automatically for you.</p><p><strong>Google XML Sitemap -plugin Installation and Activation</strong></p><p>If you're running WordPress versions, 2.7.x, the plugin installation is super easy:</p><ol><li>Just go to the Plugins section,</li><li>click “add new”,</li><li>search for “Google XML Sitemap”</li><li>check that the search result is the correct plugin</li><li>click “install”</li><li>activate the plugin after succesful install.</li></ol><p>or you can install more manually with the earlier versions of WordPress:</p><ol><li>Download the plugin from the <a href="http://www.arnebrachhold.de/redir/sitemap-home/" title="Visit plugin homepage">Google XML Sitemaps</a> at WordPress Plugin Directory</li><li>Upload the plugin to plugins -folder with ftp client, like <a href="http://filezilla-project.org/" title="FileZilla. Great Open Source FTP Client">FileZilla</a></li><li>Activate the plugin from the plugins -page in WordPress dashboard</li></ol><p><strong>Google XML Sitemap -plugin Configuration</strong></p><p>After the installation and activation, the default settings are usually ok, so you don't have to do anything. (That was very easy configuration, don't you agree!)</p><p>However, if you want, set the options how you want the sitemap to be created, for example if you don't want some parts of your website to be listed (note that the search engines might still find those pages and index them if you don't configured the robots meta to prevent the indexing)</p><p>And <strong>as you just installed the plugin, you can go to the configuration screen of the plugin, and rebuild the sitemap manually</strong> by clicking "rebuild the sitemap" link there. In addition to creating the XML file, the Google XML Sitemaps -plugin will notify Google, MSN and Ask.com about your new (or updated) sitemap. <strong>Normally, you don't have to do the manual rebuild, it will be done automatically for you</strong>, but if you change permalink structure, or change page or post urls, you should go and do the rebuild manually (takes one second to go and click the button).</p><p>If you don't touch the settings for the location of your sitemap file, it will be generated to http://your-blog-domain/sitemap.xml or /blog/sitemap.xml or other directory, depending how your blog is configured - e.g. <a href="http://zemalf.com/sitemap.xml">http://zemalf.com/sitemap.xml</a>. Compressed sitemap.xml.gz -file will also be created and search engines will usually use that, but that is something you don't have to worry about. Now you can link the XML Sitemap on your footer if you like, but you don't have or need to. Search Engines should pick up the sitemap based on the announcement the plugin sends.</p><p><strong>Sitemap for Your Readers</strong></p><p>There are plenty of ways to do this, but I use the <a href="http://www.dagondesign.com/articles/sitemap-generator-plugin-for-wordpress/" title="Dagon Design Sitemap Generator plugin homepage">Dagon Design Sitemap Generator</a>, which inserts configurable sitemap anywhere you want in your blog.</p><p><strong>Dagon Design Sitemap Generator -plugin Installation and Activation</strong></p><p>Like above, with WordPress 2.7.x and onwards:</p><ul><li>Go to the Plugins section in your Dashboard, click “<em>add new</em>”, search for “<em>Dagon Design Sitemap Generator</em>”, check that the search result is the plugin you want, click “<em>install</em>” and activate the plugin after succesful install.</li></ul><p>or install manually with the earlier versions of WordPress:</p><ul><li>Download the plugin from the <a href="http://www.dagondesign.com/articles/sitemap-generator-plugin-for-wordpress/" title="Dagon Design Sitemap Generator plugin homepage">Dagon Design Sitemap Generator</a> at WordPress Plugin Directory, upload the plugin to plugins -folder with ftp client, like <a href="http://filezilla-project.org/" title="FileZilla - Great open source FTP client">FileZilla</a>. Activate the plugin from the plugins -page in WordPress dashboard</li></ul><p><strong>Dagon Design Sitemap Generator -plugin Configuration</strong></p><p>Go to the configuration screen and set the options as you like, again the defaults are fine, but check the options for your liking and you are set, the plugin is now ready for action.</p><p>Go create a new page ("<em>Pages</em>" in your Dashboard, "<em>add new</em>"). Add some introductory text to the page if you want (e.g. "Complete Sitemap for Zemalf.com"), and the add the Dagon Design Sitemap Generator tags to the page:</p><pre>&lt;!-- ddsitemapgen --&gt;</pre><p>I created a separate page for my sitemap, and you can see it in the ingeniously named "<a href="http://zemalf.com/sitemap/" title="Zemalf.com Sitemap">Sitemap</a>" for this site at the page list navigation (on top at the time this was written).</p><p>You can also add the sitemap directly to your theme template if you like and feel confortable going into the php-files:</p><pre>&lt;?php echo ddsg_create_sitemap(); ?&gt;</pre><p>For example, you could add the code to the theme's 404.php -file or possibly in the loop if no posts are found, but I leave the option for you. If you're interested in details about the plugin and the latest updates, check the <a href="http://www.dagondesign.com/articles/sitemap-generator-plugin-for-wordpress/" title="Dagon Design Sitemap Generator plugin homepage">Dagon Design Sitemap Generator</a> -plugin homepage.</p><p><strong>Great Job - </strong><strong>Now Enjoy the Results!</strong></p><p>Now you have a sitemap set up for the search engines and they can't wait to crawl through your website and content, and you have a page for your readers to navigate through your site if everything else, like category, page or tag listings fail to point to the right direction.</p><p>It might be that "reader's sitemap" won't be used that much, but in case it helps your readers to navigate your site, enjoy more of your content and stay on your site, I say it's worth the couple of minutes it takes to install the plugin and page for the sitemap. After setting the sitemap up, you don't have to maintain it at all.</p> Here's more posts like to this:<ol><li><a href='http://zemalf.com/917/how-to-add-google-custom-search-to-your-blog/' rel='bookmark' title='How To Add Google Custom Search to Your Blog'>How To Add Google Custom Search to Your Blog</a></li><li><a href='http://zemalf.com/713/most-essential-wordpress-plugins/' rel='bookmark' title='The 6 most essential WordPress plugins'>The 6 most essential WordPress plugins</a></li><li><a href='http://zemalf.com/988/automatic-image-compression-smushit/' rel='bookmark' title='Automatic Image Compression with SmushIt for WordPress'>Automatic Image Compression with SmushIt for WordPress</a></li></ol><p><hr /><p>Original post from Zemalf's <a href="http://zemalf.com">Website optimization</a> blog:<br /> <a href="http://zemalf.com/539/wordpress-xml-sitemap/">How To Add a XML Sitemap to WordPress Blog</a></p></p>]]></content:encoded> <wfw:commentRss>http://zemalf.com/539/wordpress-xml-sitemap/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>How To Combine Google Custom Search and AdSense with the Default WordPress Search</title><link>http://zemalf.com/337/how-to-combine-google-custom-search-and-adsense-with-the-default-wordpress-search/</link> <comments>http://zemalf.com/337/how-to-combine-google-custom-search-and-adsense-with-the-default-wordpress-search/#comments</comments> <pubDate>Sun, 24 May 2009 13:07:05 +0000</pubDate> <dc:creator>Antti Kokkonen</dc:creator> <category><![CDATA[WordPress Tips]]></category> <category><![CDATA[AdSense]]></category> <category><![CDATA[Customize]]></category> <category><![CDATA[Make Money Online]]></category> <category><![CDATA[php]]></category> <category><![CDATA[Search]]></category> <category><![CDATA[Theme]]></category> <category><![CDATA[WordPress]]></category><guid isPermaLink="false">http://zemalf.com/?p=337</guid> <description><![CDATA[<p>Google Custom search is a powerful tool to give your readers a chance to search for content from your blog, web or whatever sites you define for the search. WordPress [...]</p><p><hr /><p>Original post from Zemalf's <a href="http://zemalf.com">Website optimization</a> blog:<br /> <a href="http://zemalf.com/337/how-to-combine-google-custom-search-and-adsense-with-the-default-wordpress-search/">How To Combine Google Custom Search and AdSense with the Default WordPress Search</a></p></p>]]></description> <content:encoded><![CDATA[<p>Google Custom search is a powerful tool to give your readers a chance to search for content from your blog, web or whatever sites you define for the search. WordPress comes with default search which presents blog posts and/or pages with the search terms you used.</p><p class="alert">Remember to check Google's Terms &amp; Conditions when adding the Google Custom Search. You are not allowed to hide the fact that you're using Google Custom Search. Reworked instructions are here <a href="http://zemalf.com/917/how-to-add-google-custom-search-to-your-blog/" title="How To Add Google Custom Search to Your Blog">How To Add Google Custom Search to Your Blog</a>.</p><p><strong>I wanted to combine these two</strong>. I like the default as the <strong>WordPress search gives clear blog post links and integrates automatically into the WordPress Theme</strong> and templates. On the other hand, <strong>Google Custom Search is more accurate in a sense and is "automatically" monatized through Google Adsense</strong>.</p><blockquote><p>This article shows you how to get the best of both words, custom search results from Google, along with Adsense ads and the WordPress search results that display the most relevant posts from your blog.</p></blockquote><p><strong>Note that the most simple way to add Google Custom Search Engine (GCSE) to your blog, is to use a plugin and corresponding widget</strong>, but I rarely say no to a chance to mess with javascript and php, so here we go!</p><p><span id="more-337"></span></p><p><a href="http://zemalf.com/337/how-to-combine-google-custom-search-and-adsense-with-the-default-wordpress-search/" title="How To Combine Google Custom Search and AdSense with the Default WordPress Search"><strong>How To Combine Google Custom Search and AdSense with the Default WordPress Search</strong></a></p><p><strong>Search Functionality in WordPress</strong></p><p>In most WordPress Themes there are two php-files that handle the search form and search results:</p><ul><li>searchform.php</li><li>search.php</li></ul><p><em>searchform.php</em> is the actual search form and it can be displayed anywhere in your blog. Most templates display search form at the top of the sidebar or in the header, but your template might have it elsewhere or nowhere at all. If your template doesn't have default search you can add it yourself, or you can use a search widget to display search.</p><p><em>search.php</em> is used to display search results, based on the search query from the search form displayed by searchform.php.</p><p><strong>Setting Up Google Custom Search</strong></p><ol><li>Go to <a href="https://www.google.com/adsense/" title="Google AdSense">Google AdSense</a></li><li>If you don't have a Google Account yet, <a href="https://www.google.com/accounts/NewAccount" title="Create a Google Account">Create a Google Account</a> now, it's free and you get access to all kinds of services for free.</li><li>In the AdSense control panel, go to the 'AdSense Setup' tab</li><li>Click on the 'AdSense for Search'</li></ol><p>Now it's time to setup the Google Custom Search</p><ol><li>Choose "only sites I select"</li><li>Enter your domain + "\*" to the Selected Sites -list. e.g. zemalf.com/*</li><li>Check the other options, which should be ok by default. Hit <em>Continue &gt;&gt;</em></li><li>Edit the looks of the search box or if the Default "Look &amp; Feel" is OK, Hit <em>Continue &gt;&gt;</em></li><li>Choose "Open results within my own site", and</li><li>Enter URL where search results will be displayed: http://yourdomain.com/index.php? - e.g. http://zemalf.com/index.php?</li><li>Don't forget the question mark (?) after the index.php</li><li>Edit the search results palette and options, when satisfied, hit <em>Continue &gt;&gt;</em> again.</li><li>Give name for your Search Engine (visible for you at Google AdSense), e.g. Search from Zemalf.com</li><li>Hit <em>Submit and Get Code</em></li></ol><p>On the next page, you will see two boxes, one with Search Box Code, and the other with Search Results Code.</p><ul><li>The Search Box Code will go into searchform.php</li><li>The Search Results Code will go into search.php</li></ul><p><strong>Editing the WordPress Template and Inserting the Google Custom Search</strong></p><p><strong>Step 1 : searchform.php</strong></p><ul><li>Go to Theme Editor. (Appearance &gt;&gt; Editor in WordPress 2.7.x)</li><li>Open searchform.php (or edit it directly through ftp or such)</li><li>Look for the original search form, which starts with &lt;form&gt; and ends with &lt;/form&gt;</li><li>Take a copy of the original form, and paste it to text editor, like <a href="http://notepad-plus.sourceforge.net/uk/site.htm" title="Notepad++, Superb Free Text/Code Editor">Notepad++</a></li><li>Now, replace the original form in the searchform.php with the Google Search Box -code (the one with &lt;form&gt; and such)</li><li>Insert this line between the Submit line and &lt;/div&gt;</li></ul><p><code>&lt;input type="hidden" name="s" value="" /&gt;</code></p><ul><li>The "s" is used by the default WordPress Search, as Google Custom Search uses "q"</li><li>There should be this kind of text inside the form tag:</li></ul><p><code>&lt;form action="http://zemalf.com/index.php?" id="cse-search-box" &gt;</code></p><ul><li>Add the name variable and onsubmit -command inside the form tag, like this:</li></ul><p><code>&lt;form action="http://zemalf.com/index.php?" id="cse-search-box" name="searchform" onsubmit="document.searchform.s.value = document.searchform.q.value" &gt;</code></p><p>if your custom theme uses some other name than "searchform", replace searchform with whatever you want, just make sure you replace it in the name="" and inside onSubmit as well. With this we can pass the search terms in the s-variable (used by WordPress search) as well as the q-variable (used by the Google Custom Search).</p><p><strong>If your original search form (you have copied on the text editor) had some custom names or id's, try to put them in without messing the Google search code.</strong> I added the id and class variables from my theme. You can also add default value to the text input if you like, like this (using fancy javascript to change it based on user activity).</p><p>In the end, you will have something like this in your searchform.php:</p><p><code>&lt;form action="http://yourdomain.com/index.php?" name="searchform" id="searchform" onSubmit="document.searchform.s.value = document.searchform.q.value" &gt;<br /> &lt;div&gt;<br /> &lt;input type="hidden" name="cx" value="partner-pub-YOURownAdSenseCODEwillBEhere" /&gt;<br /> &lt;input type="hidden" name="cof" value="FORID:10" /&gt;<br /> &lt;input type="hidden" name="ie" value="UTF-8" /&gt;<br /> &lt;input type="text" name="q" id="searchbox" class="searchfield" value="Search from yourdomain.com" onfocus="if(this.value == 'Search from yourdomain.com') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search from yourdomain.com';}" /&gt;<br /> &lt;input type="submit" name="sa" value="Go" class="searchbutton" /&gt;<br /> &lt;input type="hidden" name="s" value="" /&gt;<br /> &lt;/div&gt;<br /> &lt;/form&gt;<br /> &lt;script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;amp;lang=en"&gt;&lt;/script&gt;</code></p><ul><li>You should now have functioning search in your blog, but only the default WordPress Default results are visible.</li></ul><p><strong>Step 2 : search.php</strong></p><p>To get the Google Custom Search results visible too, we have to edit the search.php</p><p>This is even easier than the searchform.php edit, as you <strong>just have to take the Search Results Code from the Google AdSense for Search page, and insert it in the search.php where you see fit</strong>. I placed it on the top portion, over the WordPress post results, which start with: &lt;?php while (have_posts()) : the_post(); ?&gt;</p><p>If you don't care about the default WordPress Search results, and just want the Google Custom Search in, the most simple search.php (Search Results) page looks like this (ignoring the sidebar):</p><p><code>&lt;?php get_header(); ?&gt;<br /> *GOOGLE SEARCH RESULTS CODE HERE*<br /> &lt;?php get_footer(); ?&gt;</code></p><p><strong>Tweaking the WordPress Search Some More</strong></p><p>I have still some work to do on optimizing my search with php tweakin and plugins. Here's one link I'm going to look into and boost the search even more: <a href="http://yoast.com/wordpress-search/" title="Make WordPress' search function suck Less.">Make WordPress' search function suck Less.</a> @Yoast.com</p><p><strong>Credits and Further Reading</strong></p><p>I went through all these blogs and websites looking for the code and help and found some help, but not the solution I was looking for, s0 eventually I came up with the "onSubmit" solution for passing both q &amp; s to the results page.</p><p>However, these blogs and websites have plenty of other relevant info, so feel free to dig in. Also if you want to use plugin for the search instead, or display the results in separate "search results" page instead of index.php and search.php, <strong>look for help and more detailed guides from these</strong>:</p><ul><li><a href="http://wphacks.com/how-to-build-google-custom-search-engine-wordpress-blog/" title="How To: Building a Google Custom Search Engine (GCSE) into Your WordPress Blog">How To: Building a Google Custom Search Engine (GCSE) into Your WordPress Blog</a> @WordPress Hacks</li><li><a href="http://www.doshdosh.com/how-to-set-up-google-custom-search-and-make-money/" title="How to Set up Google Custom Search for Your Website and Make Money">How to Set up Google Custom Search for Your Website and Make Money</a> @Dosh Dosh</li><li><a href="http://aleembawany.com/2008/02/11/google-custom-search-and-wordpress-integration/" title="Google Custom Search and WordPress Integration">Google Custom Search and WordPress Integration</a> @Aleem Bawany</li><li><a href="http://takethu.com/blog/2007/06/17/google-cse-in-wordpress-template/" title="How to Integrate Google Custom Search Engine Results into WordPress Blog Template">How to Integrate Google Custom Search Engine Results into WordPress Blog Template</a> @Thu Tu's Blog</li><li><a href="http://www.catswhocode.com/blog/integrate-google-search-on-your-blog" title="Integrate Google Search on your WordPress blog">Integrate Google Search on your WordPress blog</a> @Cats Who Code</li><li><a href="http://www.mydigitallife.info/2006/10/31/integrate-and-display-google-adsense-for-search-and-co-op-custom-search-engine-results-in-wordpress-blog-page-template/" title="My Digital Life's headline is way too long, as is the url. Don't you agree? :)">Integrate and Display Google AdSense for Search and Co-Op Custom Search Engine Results in WordPress Blog Page Template</a> @My Digital Life</li><li><a href="http://wordpress.org/extend/plugins/google-custom-search-for-wordpress/" title="Google Custom Search Plugin">Google Custom Search Plugin</a></li></ul><p><strong>Test Run Zemalf.com Search</strong></p><p>If you want to see how the described combination of Google Custom Search and Default WordPress Search works, take a test run and search something using the search form on the top right corner.</p> Here's more posts like to this:<ol><li><a href='http://zemalf.com/917/how-to-add-google-custom-search-to-your-blog/' rel='bookmark' title='How To Add Google Custom Search to Your Blog'>How To Add Google Custom Search to Your Blog</a></li><li><a href='http://zemalf.com/424/how-to-get-google-adsense-and-display-ads-on-your-wordpress-blog/' rel='bookmark' title='How To Get Google AdSense and Display Ads on Your WordPress Blog'>How To Get Google AdSense and Display Ads on Your WordPress Blog</a></li><li><a href='http://zemalf.com/637/how-i-made-one-dollar-and-88-cents-188-with-google-adsense/' rel='bookmark' title='How I Made One Dollar and 88 Cents ($1.88) With Google AdSense!'>How I Made One Dollar and 88 Cents ($1.88) With Google AdSense!</a></li></ol><p><hr /><p>Original post from Zemalf's <a href="http://zemalf.com">Website optimization</a> blog:<br /> <a href="http://zemalf.com/337/how-to-combine-google-custom-search-and-adsense-with-the-default-wordpress-search/">How To Combine Google Custom Search and AdSense with the Default WordPress Search</a></p></p>]]></content:encoded> <wfw:commentRss>http://zemalf.com/337/how-to-combine-google-custom-search-and-adsense-with-the-default-wordpress-search/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 1/71 queries in 0.344 seconds using disk: basic
Object Caching 2104/2210 objects using disk: basic
Content Delivery Network via cdn.zemalf.com

Served from: zemalf.com @ 2012-02-08 08:39:01 -->
