How to Add Categories or Tags Below Posts in WordPress Templates

AuthorAuthor
Integriti StudioDecember 16, 2025

Issue Overview

One WordPress site wanted to show taxonomy tags, category and tag, or custom taxonomies (like “News” or “Topics”) beneath each blog post, single post, or custom post type. But every time a developer tried to edit the WordPress theme via the WordPress dashboard, the changes failed—or worse, broke the template file or custom template.

Key problems included:

  • Theme templates didn’t show tags by default
  • Theme editor caused errors or wiped files
  • Posts were properly tagged—but tags weren’t visible on the front end

Fixing the Issue

Access files securely

Use an FTP client, WP admin, or your host’s file manager instead of the WordPress editor. Navigate to: /wp-content/themes/your-wordpress theme/

Find the right template

For blog posts: single.php, content-single.php, or /template-parts/content-single.php. For custom post types like News: Look for single-news.php or template logic in functions.php. Check category page templates or archive page templates if needed.

️ Insert taxonomy code

Add this snippet where you want the tags or categories to appear—usually after the_content():

php

CopyEdit

<div class=”post-taxonomies”> <?php the_terms( get_the_ID(), ‘category’, ‘Filed under: ‘, ‘, ‘ ); ?> <?php the_terms( get_the_ID(), ‘post_tag’, ‘Tags: ‘, ‘, ‘ ); ?> </div>

Tip: Change ‘category’ or ‘post_tag’ to your own custom taxonomy slug if needed.

Style and test

Add simple CSS or use your theme’s Customizer to align the new section visually with your layout. Confirm that terms display cleanly on single post pages, category pages, tag pages, or custom page templates. This helps display posts, related posts, or show a list of posts of a particular category.

Final Result

Your blog posts block, single post, or news posts now include visible categories, tags, or category assigned information—boosting internal linking, search visibility, taxonomy functionality, and UX without the need for extra plugins. Published posts are assigned properly, and you can create a new post, add a new category, or add tags using a WordPress plugin if needed.

Need help modifying your WordPress theme safely?

At , we fine-tune WordPress templates to support dynamic content, smart taxonomies, and better engagement across your site.

Need help improving your WordPress forms or custom workflows? We build clean, reliable, and growth-driven WordPress solutions —without breaking a sweat.

Let’s Talk

Share

Other Resources Post

Build vs Buy in the AI Era: How to Decide Without Regretting It Later

Every enterprise leadership team eventually walks into a board meeting holding the same slide: should we build our own AI, or buy an existing platform? In 2026, that decision carries...

Building Loyalty Programs With Shopify Apps 

Summary A well-structured Shopify loyalty program or loyalty system can turn first-time customers into lifelong brand advocates. With Shopify’s ecosystem, you can easily launch points-based rewards, referral programs, and VIP...

Using Shopify Flow To Automate Your Store

Summary Shopify Flow is a powerful automation tool designed for Shopify Plus merchants that helps Shopify businesses streamline everyday tasks without writing code. From managing inventory and inventory levels to...