What it does
- Registers a custom, non-hierarchical taxonomy:
awardsfor WooCommerce products - Modifies the Core “Post Terms” block output when it renders
awards - Replaces link text (term name) with the term description
- Adds CSS classes to each award link:
award(base class){term-slug}(unique class per award)
- Optional: can also replace term names via
get_the_termsfilter on award archive pages
Why it’s useful
- You can store short/internal term names (e.g. “awwwards-2024”) while displaying a clean, marketing-ready label in the UI (e.g. “Awwwards – Honorable Mention 2024”)
- Styling becomes trivial:
.awardfor common badge styling.award.awwwards-2024for a specific badge look
- Works cleanly with Gutenberg / FSE sites using the core/post-terms block
Reviews
There are no reviews yet.