Create a WordPress Tag Page Showing All Your Post Tags

Learn creating a WordPress tag page showing all your posts tags.

Tags Page plugin is right choice for creating Tag Pages . Install and Activate it then show tags on any page by using a shortcode [get_tags] which generates sortable table of all tags.

You can also add a link from Tag Cloud to this tag page you have created. For linking Tag Cloud to Tag Page follow these steps:

  1. Copy the URL address of this new page
  2. Go to Settings -> Tags Page and fill in the URL for the page.
  3. Save the settings. It adds a link to this page into Tags Cloud (you can even see this link in Tags cloud in the administration).
  4. If you are good in CSS then you can easily style the tags table in your theme’s CSS style.

Another WordPress plugin Better Tag Cloud is also a good one. It provides a lot of configuration settings, widget and shortcode for adding tag clouds to different posts and pages.

After installing-activating this plugin you get following options:

Configuration Options
Tag cloud with some CSS

Adding a tag cloud inside a post or page

Use shortcode [nktagcloud]. See following examples:

  1. [nktagcloud] This displays the tag cloud as configured on the options page.
  2. [nktagcloud single=yes] This does the same but shows only the tags of the current post.
  3. [nktagcloud post_id=1234] Displays the tags of the post identified by post_id.
  4. [nktagcloud separator=”” categories=no] Remove separator and categories.

Using tag cloud in your theme

Call the function nktagcloud_shortcode() from your theme to get the same output as from shortcode. Example:

<?php

if ( function_exists( ‘nktagcloud_shortcode’ ) ) {

echo nktagcloud_shortcode( null );

}

?>

Other than this nk_wp_tag_cloud() function can be used to generate a tag cloud with a different configuration than the plugin. It accepts the same parameters as wp_tag_cloud().

<?php

if ( function_exists( ‘nk_wp_tag_cloud’ ) ) {

echo nk_wp_tag_cloud( ‘single=yes&separator= –

&categories=no’ );

}

?>

Additonal Parameters

  • single: Only tags of the current post (‘Yes’, ‘No’)
  • categories: Inlude categories in the cloud (‘Yes’, ‘No’)
  • replace: Convert blanks to non-breaking spaces (‘Yes’, ‘No’)
  • post_id: Display only tags of the specified post (post ID)
  • mincount: Show only tags that have been used at least so many times
  • separator: Tag separator
  • inject_count: Add a counter to the tag (‘Yes’, ‘No’)
  • inject_count_outside: Add the counter outside of the tag hyperlink (‘Yes’, ‘No’)
  • nofollow: Add the noffow attribute to the tags in the cloud (‘Yes’, ‘No’)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.