Prime Cat
WP Prime Cat; Simple and lightweight WordPress plugin for managing primary categories.
by Jared Rethman · github.com/jaredrethman/wp-prime-cat · website
★ 2stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/jaredrethman/wp-prime-cat/archive/refs/heads/master.zipA WordPress plugin for handling Primary Category assignment of all post types that use the category taxonomy.
Features:
- WebPack 4 for Module Bundling. WebPack-Dev-Server for development.
- Simple UI for managing/assigning a PrimeCat for already selected categories.
- Category selection based on PrimeCat if using
%category%in permalink structure. - Query posts that have a PrimeCat assigned to a specific category term by passing
'prime_cat' => $term_id$argstoWP_Query($args). - Utility functions for PrimeCat detection and retrieval for post_types.
Requires:
-
This plugin is built using progressive enhancement and will only function on WordPress sites using Gutenberg, either plugin or WordPress >= v5.
-
PHP >= 7.0.0
-
Post Types wanting to make use of PrimeCats will need to set 2 arguments when registering post_types:
- Have taxonomy set to category -
'taxonomy' => ['category'] - Have custom fields support -
'supports' => ['custom-fields']
- Have taxonomy set to category -