https://github.com/jaredrethman/wp-prime-cat
WP Prime Cat; Simple and lightweight WordPress plugin for managing primary categories.
https://github.com/jaredrethman/wp-prime-cat
Last synced: 2 months ago
JSON representation
WP Prime Cat; Simple and lightweight WordPress plugin for managing primary categories.
- Host: GitHub
- URL: https://github.com/jaredrethman/wp-prime-cat
- Owner: jaredrethman
- License: mit
- Created: 2019-04-26T22:16:15.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-02T10:23:54.000Z (about 6 years ago)
- Last Synced: 2025-02-10T08:25:28.697Z (4 months ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Prime Cat:
A 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` `$args` to `WP_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:
1. Have taxonomy set to category - `'taxonomy' => ['category']`
2. Have custom fields support - `'supports' => ['custom-fields']`## [Wiki](https://github.com/jaredrethman/wp-prime-cat/wiki)