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

WittySparks

Ignite Your Thoughts

  • Topics
  • Reviews
  • Newsletter
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 K

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.

Related Topics

  • How to Install Android on Raspberry Pi 4
  • WordPress Membership plugins – tools to capture recurring revenue
  • Everything you need on How to speed up WordPress site in 2022
Previous Post: « Have you created a Google Public Profile yet?
Next Post: Smart Tips on MS Excel 2007 – How to create a series? »
Profile picture for Sravan K

About Sravan K

Contributor at 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 K

Primary Sidebar

Search

Exclusive Coupons

  • Moqups coupon code: WITTYSPARKS for 20% or PARTNERS50 for 50% discount.
  • WPForms coupon code: WITTYSPARKS for 50% off.
  • Serpstat coupon code: wittysparks_discount for 30% off.
  • SEO Buddy coupon code: WITTYSPARKS for 25% off.
  • Morningscore coupon code: wittysparks for 30% off for 3 months.
  • FlexClip coupon code: WITTYSPARKS for 30% off.
  • Uplead coupon code: “witty” for 30-day free trial.
  • FastestVPN coupon codes: WITTYSPARKS15 or WITTYSPARKS10 or Get up to 93% OFF.
  • Outranking.io coupon code: WITTYSPARKS50 for 50% off.

For more such offers visit our exclusive offers for SEO, Bloggers, Marketers and for Business owners.

Featured Productivity Software

Notion logo
Notion

Whether you’re a solo entrepreneur or a large team, Notion Workspace can help you stay organized and get more done. Get started today and take your productivity to the next level.

Try Notion for FREE

Footer

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 © 2023 · Hosting sponsored by Rocket.net (Affiliate link)

  • About Us
  • Contact Us
  • Privacy Policy
  • LinkedIn
  • Twitter
  • Like
  • Pinterest