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 Integriti Studio, we fine-tune WordPress templates to support dynamic content, smart taxonomies, and better engagement across your site.