Create your own Tag Archive page in wordpress

In most of the wordpress blogs, side bars are loaded with content, widgets, banners, links, videos etc. so many will try to crop the loaded content from the side bars, in this process I have moved the tag cloud or tag archive section to a new page in wordpress.

I hope this will be really helpful for the bloggers who are looking out to sort out their pages/widgets and make their blog to look more clean.

Just follow these simple steps to create a Tag Archive page:

  1. Create a php page you can name it as “tag_archive.php”
  2. Place the code blow in the new page created
    <?php
    /*
    Template Name: TAG Archive
    */
    ?>
    <?php get_header(); ?>
    <h2>Tag Archive</h2>
    <?php wp_tag_cloud(’smallest=15&largest=35′); ?>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
  3. The first line “Template Name: TAG Archive” defines your newly created page name
  4. Use the functions get_header(); to include header, get_sidebar(); to include your sidebar and use get_footer(); for footer
  5. Use wp_tag_cloud function to include your tag cloud and adjust your font sizes via smallest and largest parameters
  6. Make sure you are going with your default theme look and feel
  7. Once you are done, upload tag_archive.php in your theme directory
  8. Then create a new page in your blog called Tag Archive via wordpress interface admin
  9. And choose “Tag Archive” as your Page Template dropdown
  10. That’s it save and publish the page – your Tag Archive page is created

Found this article useful? Let me know if you are looking out for any scripts or solutions etc, will share the same with you all.

If you enjoyed this post, please feel free to bookmark it using your favorite social bookmarking site!

This article was written by sravkum - who wrote 130 stories on this site so far.

A Creative Web Designer, Developer and User Interface Expert.

3 Comments on “Create your own Tag Archive page in wordpress”

  • Tim wrote on 9 March, 2009, 0:38

    I created a tags page, but when you click on a tag, you aren’t taken to the content. What do I need to fix?

  • Sravan wrote on 9 March, 2009, 23:41

    @ Tim
    Have gone through your site – but looks like you are not tagging the articles – I have check few of your articles which are not tagged. No idea how you are generating the list of tags….. – kindly check once.

  • Maaike wrote on 4 May, 2009, 19:02

    Hi, I built my own tag archive. The lay-out worked out, but there still is something I don’t like. When you place the tag archive on a separate page, it always shows the page title and other info. Is there a way around this? http://www.maaikevankessel.nl/labelwolk/ thanks!

Write a Comment