• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / I found a solution how to get the list of all tags

I found a solution how to get the list of all tags

  • Unknown's avatar
    poolryhm · Member · Feb 9, 2026 at 11:17 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Hello!

    I am coming from Blogger and I am very new to everything WordPress. I successfully imported my blog to WordPress.com using a paid version of a plugin called “Blogger Importer Extended” made by pipdig. At first, right after import all posts were empty but somehow the contents appeared later so all good with that (so far).

    But to my surprise, WordPress.com does not have a simple widget or whatever to get the list of ALL tags. It has the tag cloud option and that can be configured so that the cloud looks like a regular simple list (as I wanted it) but it has the maximum limit of 100 tags. My blog contains authors of old songs and abbreviation of old hymnal books too which I wanted to have as tags and I already have more than 100 of those. In my case, I want all of them listed, not just the “popular” ones. I estimate that the total number of these won’t go over 250 or 300 in the future. In Blogger, getting the list of all tags was just a simple component to add to my blog but it turned out nearly impossible to get the same thing in WordPress.com.

    I finally found a solution to get such a list and I write it down here too so others who stumble upon this problem can use it.

    First, I found a PHP code that will generate such a list here. This is the code copied from that website:

    <h2>Tags</h2>
    <ul>
    <?php
    $tags = get_tags();
    if ( $tags ) :
    foreach ( $tags as $tag ) : ?>
    <li><a href="<?php echo esc_url( get_tag_link( $tag->term_id ) ); ?>" title="<?php echo esc_attr( $tag->name ); ?>"><?php echo esc_html( $tag->name ); ?></a></li>
    <?php endforeach; ?>
    <?php endif; ?>
    </ul>

    Very good! But I can’t enter PHP as a block into my blog. When I tried adding this as HTML, it produced nothing reasonable.

    But there is an option to do that: one has to convert the PHP code to something called “shortcode” within WordPress.com and then use that. I could do that using another plugin called “Insert PHP Code Snippet” by xyzscripts.com. I had to install this free plugin and then go to the new subsection it created in my admin panel. I named the new “snippet” as “all-tags” and used an option “Shortcode (manual)” when creating it. So I had this new snippet available.

    And now, finally, when editing a block in the suitable location in my template, I added a sub-block called Shortcode and the real code that I entered was this:

    [xyz-ips snippet="all-tags"]

    And there you go: I really have a list of all tags now!

    I wonder why is this list of ALL tags such a bad idea for WordPress.com to just have this as an option for everybody. It isn’t so unnatural thing and there have been many requests for this over the years in this forum.

    In case anybody has a nicer, simpler, shorter solution, just add it here. The simpler the better.

Log in or create an account to reply
Log in Sign Up

Tags

  • account
  • currency
  • design
  • import
  • modlook
  • payment
  • tags

About this topic

  • In: Support
  • 1 participant
  • 0 replies
  • Last activity 8 hours
  • Latest reply from poolryhm

Couldn't find what you needed?

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Ask a question in our forum

Browse questions and get answers from other experienced users.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions