Skip to content

WPConstructor/terms-enhancer

Repository files navigation

WPConstructor Terms Enhancer

Terms Enhancer Logo

Enhance the WordPress core/post-terms block with:

  • ✅ Display term usage counts
  • ✅ Disable links for terms with only one post
  • ✅ Automatically remove href for single-use terms
  • ✅ Gutenberg editor integration
  • ✅ Lightweight and dependency-free frontend

Features

Display Term Counts

If enabled, the number of posts assigned to each term will be automatically displayed.

Example:

PHP (5)
MySQL (1)
JavaScript (3)

Prevent navigation to single-post term archives

If enabled, links for terms used only once will be visually disabled and their href attribute will be removed automatically.

Example:

Before:

<a href="/tag/test/">Test</a>

After:

<a style="cursor:not-allowed">Test</a>

This helps prevent users from navigating to archive pages containing only a single post.

Installation

From Release ZIP

  1. Download the latest release ZIP from GitHub.
  2. In WordPress Admin go to:
Plugins → Add New → Upload Plugin
  1. Upload the ZIP file.
  2. Activate the plugin.

Usage

  1. Add the Post Terms block in the Gutenberg editor.
  2. Enable:
    • Display term counts
    • Disable single links

The plugin automatically enhances the frontend output.

Requirements

  • PHP 7.1+
  • WordPress 6.0+
  • Composer (development only)

Screenshots

Screenshot of the terms block.

Screenshot of the settings of the terms block.

License

GPL-3.0-or-later

Author

Developed by WPConstructor

About

Enhance the WordPress Terms block by adding term counts and optionally disabling links for single-use terms, improving taxonomy clarity and user experience.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors