WordPress

How to Display Most Popular Tags in WordPress (2 Easy Methods)

Do you wish to show the most well-liked tags used in your WordPress website?

Tags and classes are the 2 default ways in which you should utilize to type your content material in WordPress. Nevertheless, classes usually appeal to extra consideration because of their broader scope, leaving tags with much less publicity.

On this article, we’ll present you the way to simply show your hottest tags in WordPress.

Display Most Popular Tags in WordPress

Categories and tags are the 2 default taxonomies used to type your articles in WordPress. Classes are used for broader matters or sections in your web site, whereas tags are well-suited to particular concepts throughout the context of your articles.

For instance, you may use the ‘journey’ class for all of your travel-related weblog posts, with tags like ‘Europe’, ‘Asia’, and ‘South America’.

When you begin utilizing classes and tags appropriately, you’ll probably have extra tags in your web site than classes. As a result of their broader scope, you may put categories in navigation menus, however your tags could stay much less explored by your guests.

One strategy to show tags in your web site is by including the default Tag Cloud block by visiting the Look » Widgets web page.

tag cloud block

Nevertheless, you’ll discover that this block will present all of your tags alphabetically. You can not rearrange their order or restrict the variety of tags which are displayed.

You possibly can resolve this by displaying the most well-liked or most frequently used tags in your WordPress blog. This can enable your customers to shortly get an thought of the regularly mentioned matters in your website. It is going to additionally assist them uncover extra content material, which implies extra web page views and person engagement.

Moreover, this could improve your website SEO as a result of tags may give engines like google a greater understanding of the matters your web site covers, serving to your content material rank larger.

Having mentioned that, let’s check out the way to simply show your hottest tags in WordPress. We are going to cowl totally different strategies, and you should utilize the short hyperlinks beneath to leap to the one you wish to use:

If you wish to use a plugin to show the most well-liked tags in your web site, then this methodology is for you.

First, that you must set up and activate the TaxoPress plugin. For detailed directions, you could wish to see our step-by-step information on how to install a WordPress plugin.

Upon activation, go to the TaxoPress » Phrases Show web page from the WordPress dashboard. Right here, that you must click on on the ‘Edit’ hyperlink below the ‘Phrases Show’ possibility.

Click the Edit link under the terms display option

This can open a brand new web page on the display, the place you can begin by selecting a title for displaying tags. After that, ensure that the ‘Tags’ possibility is chosen within the ‘Taxonomy’ dropdown menu.

Then, you may decide for those who solely wish to show tags which are used in your pages, posts, or media individually. Alternatively, you may show fashionable tags for all of the put up varieties.

We suggest utilizing the ‘Posts’ possibility. This can routinely eradicate any tags that you’ve used on your pages or photographs.

Choose tags as the taxonomy

Subsequent, change to the ‘Basic’ tab from the left column and select the ‘Counter’ possibility from the ‘Methodology for selecting phrases from the database’ dropdown menu.

Subsequent, merely choose the ‘Descending’ possibility from the ‘Ordering for selecting time period from the database’ menu.

When you try this, you will need to decide the ‘Counter’ possibility once more from the ‘Methodology for selecting phrases for show’ dropdown menu and the ‘Descending’ possibility from the ‘Ordering for selecting phrases for show’ dropdown menu.

Now, solely the most well-liked tags in your WordPress website shall be displayed.

Choose the Counter and Descending options to display most popular tags

When you try this, change to the ‘Choices’ tab from the sidebar.

Right here, you may add any textual content that you simply wish to show earlier than or after your checklist of fashionable tags.

Add text that you want to be displayed before and after your list of tags

After that, change to the ‘Design’ tab and select the utmost variety of fashionable tags to show in your web site.

You can even select a font dimension and colours on your tags. Then, go forward and click on the ‘Save Phrases Show’ button on the proper.

Click Save Terms display button

Add Common Tags to the WordPress Sidebar

Now, head to the Look » Widgets web page from the WordPress admin sidebar and click on the ‘Add Block’ (+) button.

Observe: If you’re utilizing a block theme, then this methodology gained’t work as a result of the TaxoPress plugin doesn’t supply the ‘Phrases Show’ block within the full website editor. On this case, you should utilize our second methodology.

This can open the block menu, the place you may add the Phrases Show block to your web site sidebar.

When you try this, simply choose the time period show that you simply created on your tags from the dropdown menu throughout the block itself.

Add the terms display block in the WordPress sidebar

Lastly, click on the ‘Replace’ button on the high to retailer your settings.

Now, you may go to your WordPress website to view the checklist of fashionable tags in motion.

Popular tags preview

If you’re utilizing a block theme or favor to make use of code, then this methodology is for you.

You possibly can show the most well-liked tags in WordPress by including customized code to your theme’s functions.php file. Nevertheless, the smallest error when typing the code could make your web site inaccessible.

That’s the reason we suggest utilizing WPCode. It’s the finest WordPress code snippets plugin in the marketplace that makes it secure and simple so as to add code to your web site.

First, that you must set up and activate the WPCode plugin. For extra data, see our newbie’s information on how to install a WordPress plugin.

Observe: WPCode has a free plan that you should utilize for this tutorial. Nevertheless, upgrading to the paid plan will unlock extra options like conditional logic, CSS snippets, a code snippets cloud library, and extra.

Upon activation, head to the Code Snippets » + Add Snippet web page from the WordPress dashboard.

Right here, click on the ‘Use Snippet’ button below the ‘Add Your Customized Code (New Snippet)’ possibility.

Add new snippet

This can direct you to the ‘Create Customized Snippet’ web page, the place you can begin by including a reputation for the snippet.

Subsequent, select the ‘PHP Snippet’ possibility because the Code Kind from the dropdown menu on the proper.

Choose PHP Snippet for the code snippet to display popular tags

After that, copy and paste the next customized code into the ‘Code Preview’ field:

operate wpb_tag_cloud() {
$tags = get_tags();
$args = array(
    'smallest'                  => 10,
    'largest'                   => 22,
    'unit'                      => 'px',
    'quantity'                    => 10,
    'format'                    => 'flat',
    'separator'                 => " ",
    'orderby'                   => 'rely',
    'order'                     => 'DESC',
    'show_count'                => 1,
    'echo'                      => false
); 
 
$tag_string = wp_generate_tag_cloud( $tags, $args );
 
return $tag_string; 
 
}
// Add a shortcode in order that we will use it in widgets, posts, and pages
add_shortcode('wpb_popular_tags', 'wpb_tag_cloud'); 
 
// Allow shortcode execution in textual content widget
add_filter ('widget_text', 'do_shortcode');

This code merely generates the highest 10 tags out of your web site in a cloud with the variety of posts in every tag. After that, it creates a shortcode wpb_popular_tags and enables a shortcode in the text widget.

Now, you must scroll right down to the ‘Insertion’ part and select the ‘Auto Insert’ mode. The code shall be routinely executed when you add the built-in shortcode to your web site.

Choose an insertion method

When you try this, scroll again to the highest and toggle the ‘Inactive’ change to ‘Energetic’.

Lastly, click on the ‘Save Snippet’ button to retailer your settings.

Save the code snippet for displaying popular tags

Add Most Common Tags within the WordPress Full Web site Editor

If you’re utilizing a block theme, then head to the Look » Editor web page from the WordPress dashboard.

This can open the total website editor, the place you must click on the ‘+’ button to open the block menu. From right here, add the Shortcode block to the web page.

Subsequent, you will need to add the next shortcode to the block itself:

[wpb_popular_tags]

Lastly, click on the ‘Save’ button on the high to retailer your settings.

Now, simply go to your web site to see the favored tags in motion.

Popular tags preview in a block theme

Add Most Common Tags within the WordPress Widget Space

If you’re utilizing a traditional theme in your web site, then you may add fashionable tags by visiting the Look » Widgets web page from the WordPress dashboard.

Right here, click on the ‘Add Block’ (+) button to open the block menu and add the Shortcode block to your most popular widget space.

Subsequent, add the next shortcode into the block:

[wpb_popular_tags]

Add shortcode in the widget area of your liking

Then, click on the ‘Replace’ button to retailer your settings.

Now, go forward and go to your WordPress website to see the favored tags.

Preview of the popular tags

Bonus: Fashion the Tags on Your WordPress Web site

Now that you’ve added the most well-liked tags to your WordPress website, additionally it is necessary to customise them for the theme that you’re utilizing. This can make your tags visually interesting and assist seize the person’s consideration instantly.

Plus, through the use of totally different sizes, fonts, and colours on your tags, you make it simpler for guests to scan and discover the tags they’re eager about. This can assist improve engagement and click-through charges.

For instance, if a person is just eager about studying about your articles associated to journey, then they’ll click on on that tag to open an inventory of travel-related articles.

Styled tags preview

You possibly can type your tags by adding custom CSS to alter the spacing between them, add background colours, change the alignment, and far more.

For detailed directions, you may see our newbie’s information on how to style tags in WordPress.

We hope this text helped you discover ways to show the most well-liked tags in WordPress. You may additionally wish to see our newbie’s information on categories vs. tags – SEO best practices for sorting your content and our checklist of most wanted WordPress tips, tricks, and hacks for newcomers.

In the event you favored this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You can even discover us on Twitter and Facebook.



Leave a Reply

Your email address will not be published. Required fields are marked *