<?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; custom tag pages</title> <atom:link href="http://www.ghacks.net/tag/custom-tag-pages/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>Sat, 11 Feb 2012 08:24:54 +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>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> </channel> </rss>
