<?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>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; wordpress tips</title> <atom:link href="http://www.ghacks.net/tag/wordpress-tips/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Fri, 10 Feb 2012 20:51:26 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>How To Analyze WordPress Plugin Performances</title><link>http://www.ghacks.net/2012/01/15/how-to-analyze-wordpress-plugin-performances/</link> <comments>http://www.ghacks.net/2012/01/15/how-to-analyze-wordpress-plugin-performances/#comments</comments> <pubDate>Sun, 15 Jan 2012 11:47:03 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Web Development]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress plugin]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=55824</guid> <description><![CDATA[I have been using WordPress ever since I started blogging here on Ghacks in 2005. It has been a pleasant ride most of the time, with the occasional rough bump down the road. As a WordPress administrator, you have access to thousands of different plugins that extend or improve the blog&#8217;s functionality. One issue that [...]]]></description> <content:encoded><![CDATA[<p>I have been using WordPress ever since I started blogging here on Ghacks in 2005. It has been a pleasant ride most of the time, with the occasional rough bump down the road. As a WordPress administrator, you have access to thousands of different plugins that extend or improve the blog&#8217;s functionality. One issue that you may experience after installing plugins is that your site may load slower than before. Plugins can have an impact on the site&#8217;s load time, the server load and overall performance. The more plugins you have installed, the slower your site may become.</p><p>That&#8217;s a big issue in times where search engines are favoring fast loading websites. It also may mean that you have to upgrade your hosting to keep up with the performance requirements of your website.</p><p>P3, Plugin Performance Profiler, is a free WordPress plugin that analyzes the performance of frontend plugins. Frontend plugins are all plugins that are executed during page loading time.</p><p><strong>Installation</strong></p><p>Just open Plugins > Add New in your WordPress admin dashboard and search for P3. Click on the Install Now link to install the plugin, and on Activate on the next screen to activate it. You can alternatively download it <a
href="http://wordpress.org/extend/plugins/p3-profiler/">from the</a> official WordPress Plugin repository to install it manually on your blog.</p><p><strong>Usage</strong></p><p>Open Tools > P3 Plugin Profiler and click the Start Scan button to run the standard scan. The program will load several posts and pages from your site to calculate individual plugin performance data. You can alternatively run a manual scan instead, which allows you to pick the pages and posts that you want to load on the site. The benefit here is that you can specify exactly which posts and pages you want to use for the sample.</p><p>Once done, results are displayed in the program interface.</p><p><a
href="http://www.ghacks.net/wp-content/uploads/2012/01/wordpress-plugin-performance.jpg"><img
src="http://www.ghacks.net/wp-content/uploads/2012/01/wordpress-plugin-performance-600x385.jpg" alt="wordpress plugin performance" title="wordpress plugin performance" width="600" height="385" class="alignnone size-medium wp-image-55827" /></a></p><p>You should now see the average plugin impact on the site&#8217;s load time, the number of MySQL queries that are run per visit and a runtime breakdown by plugin.</p><p><a
href="http://www.ghacks.net/wp-content/uploads/2012/01/detailed-breakdown.jpg"><img
src="http://www.ghacks.net/wp-content/uploads/2012/01/detailed-breakdown-600x316.jpg" alt="detailed breakdown" title="detailed breakdown" width="600" height="316" class="alignnone size-medium wp-image-55828" /></a></p><p><a
href="http://www.ghacks.net/wp-content/uploads/2012/01/detailed-timeline.jpg"><img
src="http://www.ghacks.net/wp-content/uploads/2012/01/detailed-timeline-600x291.jpg" alt="detailed timeline" title="detailed timeline" width="600" height="291" class="alignnone size-medium wp-image-55829" /></a></p><p>If plugin impact appears to be to high, or if you have a plugin installed that is using a lot of resources, you may want to consider replacing it or removing it completely from the site. You can deactivate plugins before you run the test again to see if the deactivation has a positive impact on the frontend page loading times. You could furthermore install an alternative to see if it is lighter on the resource side.</p><p>There is however no option to compare scans with each other, which is unfortunately. It is also not clear why the performance profiler itself is listed in the results, as it does not really make a whole lot of sense.</p><p>Still, if you are hearing complaints from readers or are noticing server peak load times and resource usage, you may want to check out the Plugin Performance Profiler plugin to see which plugin may be causing it.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2012/01/15/how-to-analyze-wordpress-plugin-performances/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>Speed Up WordPress Page Loading Times By Removing l10n.js</title><link>http://www.ghacks.net/2011/10/25/speed-up-wordpress-page-loading-times-by-removing-l10n-js/</link> <comments>http://www.ghacks.net/2011/10/25/speed-up-wordpress-page-loading-times-by-removing-l10n-js/#comments</comments> <pubDate>Tue, 25 Oct 2011 12:19:05 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Web Development]]></category> <category><![CDATA[page load]]></category> <category><![CDATA[speed up site]]></category> <category><![CDATA[webmaster]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=51927</guid> <description><![CDATA[I recently noticed that my WordPress blog&#8217;s page loading times increased through the roofs which made me reevaluate everything that contributed to the loading times of the website. I implemented a few changes on the blog to improve page loading times. I first got rid of the three social networking buttons pointing to Google Plus, [...]]]></description> <content:encoded><![CDATA[<p>I recently noticed that my WordPress blog&#8217;s page loading times increased through the roofs which made me reevaluate everything that contributed to the loading times of the website. I implemented a few changes on the blog to improve page loading times. I first got rid of the three social networking buttons pointing to Google Plus, Facebook and Twitter, and replaced them with the Add This script instead. The benefit here was that it reduced the external JavaScript code that needed to be loaded for the functionality from three to one.</p><p>I also noticed that articles with hundreds of comments were loading significantly slower than pages with less comments. This made me reduce the number of comments per page to 50 root comments (plus their answers).</p><p>Today I noticed that WordPress added another JavaScript to ever page. The script in wp-inlcudes/l10n.js that is related to the admin bar that the WordPress developers added to one of the recent versions of the blogging platform.</p><p>While it is a small file with a size of 233 bytes it is still a script that is loaded by anyone, not just the admin of the blog. This somehow does not make a lot of sense. The important thing here is that the blog needs to make the request to load the element, not the time it takes to load the 223 bytes.</p><p><a
href="http://www.ghacks.net/wp-content/uploads/2011/10/ghacks-page-objects.jpg"><img
src="http://www.ghacks.net/wp-content/uploads/2011/10/ghacks-page-objects-600x296.jpg" alt="ghacks page objects" title="ghacks page objects" width="600" height="296" class="alignnone size-medium wp-image-51928" /></a></p><p>WordPress administrators may want to remove the JavaScript element from being loaded by every blog visitor to speed up the blog&#8217;s page loading times. The easiest way to remove the l10n.js from being loaded with WordPress is to unload it in the functions.php file in the WordPress theme folder.</p><p>All you need to do for that is to add the following line of code to the end of the functions.php file.</p><p><code>wp_deregister_script('l10n');</code></p><p>Please note that this may disable part of the admin bars toolbar functionality. Users over at <a
href="http://wordpress.stackexchange.com/questions/5451/what-does-l10n-js-do-in-wordpress-3-1-and-how-do-i-remove-it">Stack Exchange</a> have found a way to keep the JavaScript loaded for administrators of the blog.</p><p>if ( !is_admin() ) {<br
/> function my_init_method() {<br
/> wp_deregister_script( &#8216;l10n&#8217; );<br
/> }<br
/> add_action(&#8216;init&#8217;, &#8216;my_init_method&#8217;);<br
/> }</p><p>Just add this code instead to the functions.php file.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/10/25/speed-up-wordpress-page-loading-times-by-removing-l10n-js/feed/</wfw:commentRss> <slash:comments>20</slash:comments> </item> <item><title>How To Change The WordPress Admin Interface Fonts</title><link>http://www.ghacks.net/2011/07/05/how-to-change-the-wordpress-admin-interface-fonts/</link> <comments>http://www.ghacks.net/2011/07/05/how-to-change-the-wordpress-admin-interface-fonts/#comments</comments> <pubDate>Tue, 05 Jul 2011 13:48:09 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Web Development]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress admin]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=47414</guid> <description><![CDATA[With the release of WordPress 3.2 came a redesign of the admin interface, and with that a gruesome new font, line heights and margins. The new design looked that terrible that I &#8211; for the first time ever &#8211; switched from the plain HTML editor to the visual editor. The visual editor uses an eye [...]]]></description> <content:encoded><![CDATA[<p>With the release of WordPress 3.2 came a redesign of the admin interface, and with that a gruesome new font, line heights and margins. The new design looked that terrible that I &#8211; for the first time ever &#8211; switched from the plain HTML editor to the visual editor. The visual editor uses an eye pleasing font and layout.</p><p>It is still a mystery to me why the developers thought it was a good idea to change the default plain HTML editor textarea font in the WordPress admin interface.</p><p>If you are like me, you prefer the old font, especially if you are used to working with the HTML editor of the admin area.</p><p>It is thankfully though not complicated to switch back to the old font. All you need to do is to replace or edit one file of your WordPress installation.</p><p>CSS is used both on the blog&#8217;s frontend and backend to format elements. Lets take a look at the new font of the WordPress 3.2 admin interface.</p><div
id="attachment_47424" class="wp-caption alignnone" style="width: 610px"><a
href="http://www.ghacks.net/wp-content/uploads/2011/07/wordpress-32-admin-interface.png"><img
src="http://www.ghacks.net/wp-content/uploads/2011/07/wordpress-32-admin-interface.png" alt="wordpress 32 admin interface" title="wordpress 32 admin interface" width="600" height="406" class="size-full wp-image-47424" /></a><p
class="wp-caption-text">new wordpress font</p></div><p>To change the WordPress admin interface to this</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/07/wordpress-admin-font.png" alt="wordpress admin font" title="wordpress admin font" width="597" height="404" class="alignnone size-full wp-image-47426" /></p><p>you need to edit the file wp-admin.css located in the wp-admin/css directory. Make a backup of the file before you start editing it. Open it in your favorite text editor and search for the string <strong>#editorcontainer</strong></p><p>You should see code that looks like the following:</p><p><code>#editorcontainer #content{font-family:Consolas,Monaco,monospace;padding:6px;line-height:150%;border:0</code></p><p>Notice the font-family setting? To change the font all you need to do is to add another font in front. I have added Verdana which you can see in the second screenshot of the admin interface. The code for Verdana would look like this</p><p><code>#editorcontainer #content{font-family:Verdana,Consolas,Monaco,monospace;padding:6px;line-height:150%;border:0</code></p><p>You can also change the padding and line-height there to get better values as well if you want.</p><p>I know that some of you may not be comfortable editing css files on their own. I have uploaded the new wp-admin.css file to my server, and you can download it from this link: <a
href='http://www.ghacks.net/wp-content/uploads/2011/07/wp-admin.css'>wp-admin.css</a>.</p><p>Just copy the file to the wp-admin/css/ section of your WordPress blog and you should see the new font when you reload the admin page. The only change in the file is the new font. If you want to change line height, padding or other values you need to do that on your own.</p><p>Update: Files and edits you need to edit have changed in WordPress 3.3.1 as <a
href="http://www.jpetrie.net/2012/01/26/how-to-change-the-wordpress-admin-area-text-field-font/">John Petrie</a> points out. It is now necessary to edit the <strong>wp-includes/editor-buttons.css</strong> file, and change the style information of <strong>wp-editor-area</strong>. Thanks John for posting your solution.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/07/05/how-to-change-the-wordpress-admin-interface-fonts/feed/</wfw:commentRss> <slash:comments>23</slash:comments> </item> <item><title>Add Thumbnails To Your WordPress Blog</title><link>http://www.ghacks.net/2011/06/06/add-thumbnails-to-your-wordpress-blog/</link> <comments>http://www.ghacks.net/2011/06/06/add-thumbnails-to-your-wordpress-blog/#comments</comments> <pubDate>Mon, 06 Jun 2011 14:25:40 +0000</pubDate> <dc:creator>Melanie Gross</dc:creator> <category><![CDATA[Web Development]]></category> <category><![CDATA[thumbnails]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress blog]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=46133</guid> <description><![CDATA[Blogging with WordPress is an easy, quick way to get your posts to viewers without sitting down and plugging through an entire website of code yourself. However, there are certain aspects of the program that cause some users pause. For example, many posts benefit from a nice, clean thumbnail seated just to the left of [...]]]></description> <content:encoded><![CDATA[<p>Blogging with WordPress is an easy, quick way to get your posts to viewers without sitting down and plugging through an entire website of code yourself.  However, there are certain aspects of the program that cause some users pause.</p><p>For example, many posts benefit from a nice, clean thumbnail seated just to the left of the title of your posts.  Such images break up otherwise monotonous, similar posts into individual units with their own appearance and characteristics.  They can make the difference between an unattractive blog blanketed in text and an interesting web magazine with illustrations.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/06/wordpress-thumbnails1.png" alt="wordpress thumbnails" title="wordpress thumbnails" width="600" height="407" class="alignnone size-full wp-image-46136" /></p><p>To implement these thumbnails you need to tell WordPress to look for the specific images you want and then to add them itself.  You can do this by creating a field in each post called customimage which, when found, will tell WordPress to make the image appear.  On the off chance that you do not add the customimage field to a particular post, you want WordPress to instead display a default image.</p><p>To begin, select an image that you would like posts to display by default.  This could be your face, your dog, a speeding car – really, it&#8217;s completely up to you.  Open the image in your favorite editor (Gimp, Paint.net or any other image editor that you may have at your disposal) and set it to whatever pixel dimensions you prefer.  Be mindful that regardless of how long your blog title is, your photo will always be the same size.  Somewhere between 150 by 150 and 250 by 250 pixels is probably a safe bet, and square boxes are easier to place various images in later, as opposed to rectangular ones.  Once you have a nice image name it something you can remember (standard.gif, default.gif, etc.).</p><p>Next, upload the default image into your theme&#8217;s image directory.  This makes it available to all pages of your site and any post missing the customimage field.</p><p>Now for the important part: post the following code into the index.php file of your WordPress wherever you would like the thumbnails to appear:</p><p><code>&lt;?php $postimageurl = get_post_meta($post-&gt;ID, 'customimage', true);</p><p>if ($postimageurl) {</p><p>?&gt;</p><p>&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;img src=&quot;&lt;?php echo $postimageurl; ?&gt;&quot; alt=&quot;Post Pic&quot; width=&quot;200&quot; height=&quot;200&quot; /&gt;&lt;/a&gt;</p><p>&lt;?php } else { ?&gt;</p><p>&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;img src=&quot;&lt;?php bloginfo('template_url'); ?&gt;/images/yourwebsite.gif&quot; alt=&quot;Screenshot&quot; width=&quot;200&quot; height=&quot;200&quot; /&gt;&lt;/a&gt;</code></p><p>After you are finished copying over the code and pasting it in index.php, save the file.  Your posts will now place whatever image you chose as your default (customimage) earlier beside each entry.  That&#8217;s good, but you really want to be able to change that image – the point of this entire exercise is to make each post different.</p><p>All that you need to do is create a custom field with each entry called customimage (not in italics, of course).  Change the value each time to the URL of whatever image you would like to display beside the particular post and you will be set to go.  Enjoy having a unique thumbnail beside each post, unless you allow it to fall to the default.</p><p>Images clearly make for a more attractive blog post for the majority of readers. Are you one of those? Photos attract, so make sure that you blog is attractive and attracting.</p><p><strong>Update from Martin:</strong></p><p>You do not necessarily have to paste the code into index.php. You can alternatively paste it into single.php for individual posts, category.php for categories or tags.php for tags.</p><p>If you are not familiar with web development you may want to select a theme that supports post thumbnails out of the box. There are even some that take the first image of each post automatically and use it as the post thumbnail provided that you have not added a thumbnail image of your own to the post.</p><p>You also need to consider that images will increase the loading time of the site. If you have a slow loading site, it is probably best not to add more images to the blog, or at least not before you started to optimize the blog code for speed.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/06/06/add-thumbnails-to-your-wordpress-blog/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>WordPress: Customer Headers For Categories</title><link>http://www.ghacks.net/2011/03/24/wordpress-customer-headers-for-categories/</link> <comments>http://www.ghacks.net/2011/03/24/wordpress-customer-headers-for-categories/#comments</comments> <pubDate>Thu, 24 Mar 2011 10:01:04 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress hacks]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=43001</guid> <description><![CDATA[I&#8217;m currently working a bit on the technical backend of this WordPress blog. You may know that I have started to create custom category pages for each blog category (like Windows, Firefox or Google) here at Ghacks which allowed me to add custom contents to each. I have added a custom heading and a short [...]]]></description> <content:encoded><![CDATA[<p>I&#8217;m currently working a bit on the technical backend of this WordPress blog. You may know that I have started to create custom category pages for each blog category (like <a
href="http://www.ghacks.net/category/windows">Windows</a>, <a
href="http://www.ghacks.net/category/browsing/firefox/">Firefox</a> or <a
href="http://www.ghacks.net/category/google/">Google</a>) here at Ghacks which allowed me to add custom contents to each. I have added a custom heading and a short description on each category page, which looks a lot better than the default plain listing of articles that have been posted in that category.</p><p>What I could not figure out at first was how to use custom headers for each category. Headers in WordPress contain all the HTML head information, like meta tags and the page&#8217;s title, and often the site&#8217;s logo and main navigation.</p><p>Before I go into details I&#8217;d like to explain how to create custom category pages. This works similar to creating <a
href="http://www.ghacks.net/2009/04/08/wordpress-blogs-create-custom-tag-pages/">custom tag pages</a>. You basically copy and rename the standard category.php file of WordPress, and name it category-name.php where name is the name of the category. A custom template for the Firefox category here at Ghacks would have the name <strong>category-firefox.php</strong>, one for the Operating Systems category <strong>category-operating-systems.php</strong></p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/03/wordpress-custom-categories1.png" alt="wordpress custom categories" title="wordpress custom categories" width="209" height="200" class="alignnone size-full wp-image-43008" /></p><p>You can then edit the code of each category page individually, for instance by adding category specific information or images to the category listing.</p><p>A big problem, from a search engine optimization perspective, is that it is not possible to define custom head information for each custom category page. Why is that a problem? Because you cannot define meta tags and description or the page title in WordPress. Sure, you can modify the category name to a suitable one to get the page title you want, but this one shows up everywhere on your blog where you reference the category, not only as the title (for instance in the category listing in the sidebar).</p><p>This was not an option after all. After some dabbling and searching I came up with the perfect solution to use custom headers for the categories here at Ghacks. It again means that you have to copy and rename files but the solution works nicely and has been tested extensively.</p><p>Copy the WordPress header.php file and rename it. You are free to name it anyway you want, I suggest to name it header-categoryname.php for easier identification.</p><p>You should now have two header files in the WordPress theme folder, in my case they are named header.php and header-firefox.php.</p><p>Modify header-firefox.php as you see fit, you can for instance add meta descriptions, modify the page title or add a custom header image to it.</p><p>All that&#8217;s left now is to link that custom header to the custom category file. Open the custom category file, in my case it is category-firefox.php.</p><p>You should see <strong>&lt;?php get_header(); ?&gt;</strong> at the very top. This command tells WordPress that it should load the default header. We now replace that command to make WordPress load the custom header file instead.</p><p><code>&lt;?php<br
/> include(TEMPLATEPATH.'/header-firefox.php');<br
/> ?&gt;</code></p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/03/custom-wordpress-header.png" alt="custom wordpress header" title="custom wordpress header" width="418" height="195" class="alignnone size-full wp-image-43010" /></p><p>You need to modify the header-firefox.php part with the name of your category page, but that&#8217;s the only change.</p><p>This command tells WordPress to load the custom header if that category page is opened by a visitor of the website. And that&#8217;s basically it. Now you need to repeat the process for all remaining categories that you would like to add a custom header to.</p><p>The very same principle works for tags and pages as well.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/03/24/wordpress-customer-headers-for-categories/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>WordPress Custom Tag Templates</title><link>http://www.ghacks.net/2010/02/03/wordpress-custom-tag-templates/</link> <comments>http://www.ghacks.net/2010/02/03/wordpress-custom-tag-templates/#comments</comments> <pubDate>Wed, 03 Feb 2010 10:23:58 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[The Web]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[custom tag templates]]></category> <category><![CDATA[tag templates]]></category> <category><![CDATA[webmaster]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress custom tag templates]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=22761</guid> <description><![CDATA[Tags are an essential part of nearly every WordPress blog. Webmasters use tags to categorize posts. One side-effect of tagging posts in WordPress is that these tags are sometimes indexed by search engines. Visitors from those search engines will then see a page containing excerpts of the posts that have been tagged with that tag. [...]]]></description> <content:encoded><![CDATA[<p>Tags are an essential part of nearly every WordPress blog. Webmasters use tags to categorize posts. One side-effect of tagging posts in WordPress is that these tags are sometimes indexed by search engines. Visitors from those search engines will then see a page containing excerpts of the posts that have been tagged with that tag.</p><p>This can result in two problems for the webmaster. Problem one is indexation. It can happen that a tag page gets indexed instead of the actual post. There are plugins that can deal with that problem by adding canonical tags to those links so that the search engines know that the post page should be indexed with priority for the keyword and not the tags page.</p><p><span
id="more-22761"></span>The second problem is that the tag page can irritate search engine users as they only see excerpts and not a single article. This can look spammy to some and might have a negative impact on a visitor&#8217;s perception of the page and the website in general.</p><p>We have posted an option to create <a
href="http://www.ghacks.net/2009/04/08/wordpress-blogs-create-custom-tag-pages/">custom tag pages</a> in WordPress back in April of last year and that method is still valid and working.</p><p>This method basically creates a new template file for each tag that the webmaster wants to customize. It can for instance be used to display an introduction to visitors so that they know what the page is about. This method allows the posting of media as well as text on the tag pages.</p><p>Posting those additional information can be beneficial to the search engine indexation of the tag page as well since it adds unique content to those pages.</p><p>The disadvantage of that method is that a new template file needs to be created for each tag that the webmaster wants to customize. This is impractical for websites with thousands of tags.</p><p>Another method was posted at the Likemind blog. This new method has been introduced in WordPress 2.8. It makes use of a new tag variable called description which can be added to the tag&#8217;s template so that it will be displayed on the tag pages of the website.</p><p>Some WordPress themes come without a tag.php file. If that is the case it needs to be created and modified to include the description. The easiest way to do so is to copy the index.php file and rename the copy to tag.php. The following code needs to be added before the loop in tag.php</p><blockquote><p>&lt;!&#8211;Start Code&#8211;&gt;<br
/> &lt;?php $tag_desc = tag_description(); ?&gt;<br
/> &lt;?php if($tag_desc) : ?&gt;<br
/> &lt;div class=&quot;tag-description&quot;&gt;<br
/> &lt;?php print $tag_desc ;?&gt;<br
/> &lt;/div&gt;<br
/> &lt;?php endif; ?&gt;<br
/> &lt;!&#8211;End Code&#8211;&gt;</p></blockquote><p>Each tag page will from then on display the tag&#8217;s description if available. Tag descriptions can be edited in the Posts > Post Tags menu in the WordPress admin interface.</p><p>The benefit of this approach is that only one template needs to be created and that everything else can be handled from within the WordPress admin area. That tag description can also be used as the meta description. There are some disadvantages though as it is difficulty to add formatting and media to the description (if at all possible).</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/02/03/wordpress-custom-tag-templates/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Exclude Categories From WordPress Feeds</title><link>http://www.ghacks.net/2009/07/03/exclude-categories-from-wordpress-feeds/</link> <comments>http://www.ghacks.net/2009/07/03/exclude-categories-from-wordpress-feeds/#comments</comments> <pubDate>Thu, 02 Jul 2009 23:29:13 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[The Web]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[exclude categories]]></category> <category><![CDATA[rss]]></category> <category><![CDATA[rss feed]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress feeds]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=14087</guid> <description><![CDATA[I received an email from Matthew a few hours ago who asked if there was a possibility to exclude certain categories from my website from appearing in the RSS feed. I was really busy with a website that I purchased earlier this morning and could not answer immediately. The good news is that it is [...]]]></description> <content:encoded><![CDATA[<p><img
src="http://www.ghacks.net/wp-content/uploads/2009/04/wordpress.png" alt="wordpress" title="wordpress" width="128" height="128" class="alignleft size-full wp-image-11834" />I received an email from Matthew a few hours ago who asked if there was a possibility to exclude certain categories from my website from appearing in the RSS feed. I was really busy with a website that I purchased earlier this morning and could not answer immediately. The good news is that it is possible to exclude categories from WordPress RSS feeds.</p><p>The bad news is that it might not work with all WordPress blogs and that the user who wants to exclude the categories needs to know their category ID. The first problem is easier to solve. Excluding categories from WordPress feeds works if the WordPress blog is not using the Feedburner feed redirection plugin or a comparable plugin. The feed redirection plugin redirects all feed requests (no matter if they are category specific or the full feed) to an RSS service like Feedburner. This prevents that users can create individual feeds based on categories, authors or tags. It also prevents the exclusion of categories in the feed.</p><p><span
id="more-14087"></span>Finding out the category IDs of a WordPress blog is the second obstacle. Most webmasters use pretty permalinks which do not display IDs on the website. The only way to find out without asking the website owner is trial and error. Is is possible to open categories with their IDs in WordPress even if the Pretty Permalinks option is enabled. To open a category with a category ID one would open the following url in a web browser:</p><p><code>http://www.ghacks.net/index.php?cat=23</code></p><p>This would open the Linux category here at Ghacks. This can be a very time consuming process as I have seen categories with five digits. So its probably best to ask the administrator about the category IDs. (Feel free to post additional solutions in the comments).</p><p>To exclude categories from RSS feeds in WordPress one would use the following syntax:</p><p><code>http://www.ghacks.net/feed/?cat=-23</code></p><p>This removes category 23 from the main feed of the website. It is possible to exclude multiple categories from the feed, simply append an &#038; and another cat=-xx in the end:</p><p><code>http://www.ghacks.net/feed/?cat=-23&#038;cat=-9592</code></p><p>This excludes the Linux and Mac categories from the RSS feed.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/07/03/exclude-categories-from-wordpress-feeds/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>WordPress SEO: Advanced Nofollow</title><link>http://www.ghacks.net/2009/04/16/wordpress-seo-advanced-nofollow/</link> <comments>http://www.ghacks.net/2009/04/16/wordpress-seo-advanced-nofollow/#comments</comments> <pubDate>Thu, 16 Apr 2009 17:05:19 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[The Web]]></category> <category><![CDATA[more]]></category> <category><![CDATA[more tag]]></category> <category><![CDATA[nofollow]]></category> <category><![CDATA[search engine optimization]]></category> <category><![CDATA[Search Engines]]></category> <category><![CDATA[seo]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress seo]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=12060</guid> <description><![CDATA[WordPress is already well optimized when it comes to SEO (that&#8217;s Search Engine Optimization). There are some basic changes that are usually performed like changing the link structure to include the title of the articles or displaying the title of the article in the web browser&#8217;s title. Most users stop here, some go ahead and [...]]]></description> <content:encoded><![CDATA[<p><img
src="http://www.ghacks.net/wp-content/uploads/2009/04/wordpress.png" alt="wordpress" title="wordpress" width="128" height="128" class="alignleft size-full wp-image-11834" />WordPress is already well optimized when it comes to SEO (that&#8217;s Search Engine Optimization). There are some basic changes that are usually performed like changing the link structure to include the title of the articles or displaying the title of the article in the web browser&#8217;s title. Most users stop here, some go ahead and install SEO plugins which do some magic in the background.</p><p><span
id="more-12060"></span>Advanced tips are not that easy to come by and most websites running a WordPress blog do not have them implemented. This article will list some options that center around the nofollow tag. Nofollow basically tells search engines like Google to not count the link vote that is usually being passed when linking on the Internet. Why is that beneficial? A website has a certain linking power. Each link that is pointing to internal and external resources gets a piece of that linking power. Not all pages should be treated equally however which is what this article is about. It makes for example no sense to pass linking power to internal pages that you do not want to link for, think of privacy policies, contact pages, login, log off or social bookmarking links.</p><p>WordPress themes come with a surprising amount of links, the majority of which is not set to nofollow. Here are a few areas where you should consider placing the nofollow link tag in a WordPress blog:</p><ul><li>The more (read more) tag. The page is already linked from the title of the post properly.</li><li>WordPress meta data</li><li>Pages like Privacy Policies, Contact Us</li><li>Social Bookmarking links</li></ul><p>To add the nofollow link one would simply add the rel=&quot;nofollow&quot;<br
/> tag to the link structure which is not a problem if the link is displayed in the source code of the theme, for example:</p><p><strong>&lt;a href=&quot;http://www.example.com/&quot; rel=&quot;nofollow&quot;&gt;Example Link&lt;/a&gt;</strong></p><p>There are however links (like the previously mentioned more tag) that cannot be manipulated in the theme source as the link is created by a php function.</p><p>Here is how you make the more tag in WordPress nofollow:</p><ul><li>Open the file post-template.php in the wp-includes folder.</li><li>Locate the following line beginning with:<p> <strong>$output .= &#8216; &lt;a href=&quot;&#8217;. get_permalink()</strong>..</li><li>Replace it with:<p><strong>$output .= &#8216; &lt;a href=&quot;&#8217;. get_permalink() . &quot;#more-$id\&quot; class=\&quot;more-link\&quot; rel=\&quot;nofollow\&quot;&gt;$more_link_text&lt;/a&gt;&quot;;</strong></li><li>You basically add the rel=\&quot;nofollow\&quot; tag to the line</li></ul><p>This ensures that all more tags will be nofollow from then on.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/04/16/wordpress-seo-advanced-nofollow/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>WordPress Blogs: Create Custom Tag Pages</title><link>http://www.ghacks.net/2009/04/08/wordpress-blogs-create-custom-tag-pages/</link> <comments>http://www.ghacks.net/2009/04/08/wordpress-blogs-create-custom-tag-pages/#comments</comments> <pubDate>Wed, 08 Apr 2009 07:06:51 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[blog]]></category> <category><![CDATA[custom tag pages]]></category> <category><![CDATA[custom tags]]></category> <category><![CDATA[tags]]></category> <category><![CDATA[web development]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress blog]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2009/04/08/wordpress-blogs-create-custom-tag-pages/</guid> <description><![CDATA[A WordPress blog post consists of a handful of elements like the title and body but also tags, categories and comments. Tag pages usually display excerpts of all posts that use the same tag. One example: If you search for Windows 7 Download on Google you find that a tag page for my website Windows [...]]]></description> <content:encoded><![CDATA[<p>A WordPress blog post consists of a handful of elements like the title and body but also tags, categories and comments. Tag pages usually display excerpts of all posts that use the same tag. One example: If you search for <a
href="http://www.windows7news.com/tag/windows-7-download/">Windows 7 Download</a> on Google you find that a tag page for my website Windows 7 News is ranking on the third page of the results. Tag pages on the other hand are usually not the pages that visitors expect when visiting a website.</p><p>Webmasters can however utilize tag pages better in their WordPress blogs by creating so called custom tag pages which can contain any information they want. If you open the page above you notice that it does not contain a listing of blog excerpts but a custom page for that tag.</p><p>WordPress provides the means to create those custom tag pages easily. Custom tag pages can be created in the theme directory of the WordPress directory by adding a new template file to the theme. This new template file needs to begin with tag followed by the post slug of the tag. In the case of the Windows 7 Download tag it would have to be named <strong>tag-windows-7-download.php</strong>.</p><p><span
id="more-11768"></span>Custom tag pages have a higher priority than the default ones that show only excerpts of the posts. The easiest way to fill the custom tag with content is the following:</p><p>WordPress looks for the following files in order to create those tag pages:</p><ul><li>tag-slug.php</li><li>tag.php</li><li>archive.php</li><li>index.php</li></ul><p>Look into your theme folder and see if there is a tag.php file. If it is copy its contents and create a new php file that is using the tag-slug.php as its name. If ther eis no tag.php look for archive.php and finally index.php.</p><p>Now simply add content to the file. It might take some experimentation at the beginning but it can be really worth it in the long run. If you have any questions or additions let me know in the comments.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/04/08/wordpress-blogs-create-custom-tag-pages/feed/</wfw:commentRss> <slash:comments>14</slash:comments> </item> <item><title>WordPress Hack: Change Number Of Comments Per Page In Admin Interface</title><link>http://www.ghacks.net/2008/12/17/wordpress-hack-change-number-of-comments-per-page-in-admin-interface/</link> <comments>http://www.ghacks.net/2008/12/17/wordpress-hack-change-number-of-comments-per-page-in-admin-interface/#comments</comments> <pubDate>Wed, 17 Dec 2008 13:10:57 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[The Web]]></category> <category><![CDATA[blog software]]></category> <category><![CDATA[comment hack]]></category> <category><![CDATA[moderate comments]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress comment hack]]></category> <category><![CDATA[wordpress comments]]></category> <category><![CDATA[wordpress hack]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=9116</guid> <description><![CDATA[WordPress is displaying 20 comments per page in the admin interface. This might not be a problem for users who usually get a handful of comments per day but it forces webmasters with hundreds of comments per day to flip through the pages quite often. The 20 comments per page figure is actually the figure [...]]]></description> <content:encoded><![CDATA[<p>WordPress is displaying 20 comments per page in the admin interface. This might not be a problem for users who usually get a handful of comments per day but it forces webmasters with hundreds of comments per day to flip through the pages quite often. The 20 comments per page figure is actually the figure for both the approved comments and the comments identified as spam.</p><p>Another thing that is really annoying in WordPress 2.7 is the fact that you can either delete all comments on the page, selected comments or all spam comments at once. At 20 spam comments per page and thousands in total this can take a long time to flip through and delete.</p><p>The WordPress hack is actually quite easy to perform even for webmasters who have no knowledge whatsoever regarding html and php. The file that is responsible for the amount of comments that are displayed is called edit-comments.php. It can be found in the wp-admin folder. Make sure you backup that file before you apply the changes so that you can revert back if something should go wrong.</p><p><span
id="more-9116"></span>Locate the following line in the file, it should be around line 182 in the file:</p><p><code>$comments_per_page = apply_filters('comments_per_page', 20, $comment_status);</code></p><p>The only thing that you need to do is to change the figure 20 to another figure, e.g. 100 so that it looks like this:</p><p><code>$comments_per_page = apply_filters('comments_per_page', 100, $comment_status);</code></p><p>Just save the file again and check the display of the comments in the admin interface to make sure everything is working correctly.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2008/12/17/wordpress-hack-change-number-of-comments-per-page-in-admin-interface/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> </channel> </rss>
