I found a solution how to get the list of all tags
-
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>$tags = get_tags();if ( $tags ) :foreach ( $tags as $tag ) :<li><a href=" echo esc_url( get_tag_link( $tag->term_id ) ); " title=" echo esc_attr( $tag->name ); "> echo esc_html( $tag->name ); </a></li>endforeach;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.