• Skip to primary navigation
  • Skip to main content
  • Skip to footer
WittySparks Logo White

WittySparks

Ignite Your Thoughts

  • Topics
  • Reviews
  • Subscribe
WittySparks / Technology / Open Source / Create your own Tag Archive page in wordpress

Create your own Tag Archive page in wordpress

Open Source December 6, 2008 by Sravan Kumar Kandagatla

In most WordPress blogs, sidebars are loaded with content, widgets, banners, links, videos, etc. so many will try to crop the loaded content from the sidebars, 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 look cleaner.

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.

Appreciate your opinion on this topic on social media by tagging us @wittysparks
  • LinkedIn
  • Twitter
  • Like
  • Pinterest

Related Topics

  • Everything you need on How to speed up WordPress site in 2022
  • Best WordPress theme framework 2021: Details, Pros, Cons, exclusive list of best ones
  • WordPress Checklist: 11 Things to Consider before Launching a Website
Launch Offer
Rocket.net - Managed WordPress hosting
Rocket.net - Managed WordPress hosting
$1 for first month, $25/month

A highly secured WordPress hosting platform powered by Cloudflare enterprises with customized services for agencies, eCommerce, and small businesses.

  • PageSpeed Guarantee
  • Ultra Secure Platform
  • FREE Migrations
  • Automatic Updates
Try for $1.00 Our Review
We earn a commission if you make a purchase, at no additional cost to you.

Our Favorite Tools

Semrush - SEO and Marketing Tools
Semrush - SEO and Marketing Tools
$119.95/mo
Try for FREE Our Review
Semrush - SEO and Marketing Tools
Lasso - All-in-one Affiliate Marketing Plugin for WordPress
$29/month
Start Free Trial Our Review
Semrush - SEO and Marketing Tools
Grammarly - AI-powered writing assistant
$12.00 / month
Try for FREE Our Review
Previous Post: « Have you created a Google Public Profile yet?
Next Post: Create RSS SMS Alerts via Google SMS Channel »

Reader Interactions

Profile picture for Anonymous

About Sravan Kumar Kandagatla

Founder of WittySparks
WittySparks Staff

Sravan is a highly experienced web designer, user experience designer and developer. You can connect with him on Twitter or LinkedIn and initiate a chat.

View all posts by Sravan Kumar Kandagatla
  • LinkedIN
  • Twitter
  • Pinterest
  • Facebook
  • Instagram

Comments

  1. Profile picture for TimTim says

    March 9, 2009 at 12:38 am

    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?

  2. Profile picture for SravanSravan says

    March 9, 2009 at 11:41 pm

    @ 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.

Footer

Search

Exclusive Coupons

  • Moqups Review - Use coupon code “WITTYSPARKS" for 20% off or "PARTNERS50" for 50% discount on all plans.
  • Serpstat Review - Use coupon code "wittysparks_discount" for 30% off.
  • WPForms Review - Use coupon code "WITTYSPARKS" for 50% off.
  • WPPayForm Review - Use coupon code "wittysparks" for 10% to 40% off.

Affiliate Disclosure

If you make a purchase from WittySparks links, we will receive a small commission. See our Affiliate Disclosure.

Sponsors

Partnered with FreePik to use the licensed images.

turn to dhgate for smartphone

Follow Us

  • Facebook
  • Twitter
  • Pinterest
  • LinkedIn
  • Instagram
  • YouTube
  • RSS

Copyright © 2022 · Hosting sponsored by Rocket.net (Affiliate link)

  • About Us
  • Contact Us
  • Privacy Policy
  • Affiliate Disclosure