https://github.com/robbie-cahill/primary-category-for-wordpress-posts
Set a Primary Category for your WordPress posts
https://github.com/robbie-cahill/primary-category-for-wordpress-posts
cms javascript media nodejs npm php wordpress
Last synced: 3 months ago
JSON representation
Set a Primary Category for your WordPress posts
- Host: GitHub
- URL: https://github.com/robbie-cahill/primary-category-for-wordpress-posts
- Owner: robbie-cahill
- License: gpl-3.0
- Created: 2018-09-06T04:49:09.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-26T09:50:42.000Z (almost 8 years ago)
- Last Synced: 2025-10-24T05:03:22.463Z (8 months ago)
- Topics: cms, javascript, media, nodejs, npm, php, wordpress
- Language: PHP
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Primary Category for Posts
---
This plugin will add a magic meta box to your edit post page that will allow you to set a Primary Category for your posts. This is done via a searchable dropdown that uses AJAX in the background to get results.
This plugin would be useful for a media site where you need to list all posts based on their primary category alone inside your theme.
Getting Started
---
Clone this repo, drop the folder into your WordPress `plugins` folder, then run `npm install` to grab the JavaScript dependencies
Requirements
---
- WordPress 4.9 and up
- PHP 7.2 and up. This is required for the `void` and scalar return types the functions in this project use
- The latest versions of NodeJS and NPM
Coding Standards
---
This plugin uses the WordPress and WordPress VIP coding standards. It should be suitable for deployment on the WordPress VIP platform.
License
---
GPLV3 or later
Credits
---
This plugin uses the awesome select2 (https://select2.org/) library to render the searchable category dropdown