Download the PHP package outstand/post-terms without Composer
On this page you can find all versions of the php package outstand/post-terms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download outstand/post-terms
More information about outstand/post-terms
Files in outstand/post-terms
Package post-terms
Short Description Adds a setting to the Post Terms block that lists terms without links.
License GPL-3.0-or-later
Informations about the package post-terms
Outstand Post Terms
Adds a setting to the Post Terms block that lists terms without links.
Why
The core Post Terms block (and its Categories and Tags variations) links every term to its archive page. On sites with no taxonomy archive templates, those links lead nowhere useful. This plugin adds a Make terms links toggle to the block's Settings panel. Turn it off and the block lists the post's terms as plain text.
Markup
With links off, each term renders as a span in the position of the link:
Style unlinked terms with .wp-block-post-terms__term. The block's link color
setting has no effect on unlinked terms; they use the block's text color.
Existing blocks keep their links: the setting defaults to on.
Requirements
- WordPress 7.1+
- PHP 8.2+
- The taxonomy must be publicly queryable. Core's Post Terms block renders nothing for a taxonomy registered with
publicly_queryable => false.
Development
Linting:
Tests:
Before tagging a release, rebuild the committed vendor/ without dev
dependencies:
License
GPL-3.0-or-later. See LICENSE.
All versions of post-terms with dependencies
composer-plugin-api Version ^2.3
yahnis-elsts/plugin-update-checker Version ^5.6