Set a primary category for a post

Installs: 2 230

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 5

Forks: 1

Open Issues: 1



v0.2.0 2020-08-24 17:03 UTC

This package is not auto-updated.

Last update: 2021-05-04 19:05:44 UTC


A project by Pragmatic.

Set a primary category for a post.

This software is beta, is not feature completed, has hardcoded limitations, and is provided without warranty or support.


The implementation of this feature was based on the same in the Yoast SEO plugin for WordPress. Go check them out!


Usage Requirements

Ensure you have the prerequisite software installed:


Install this plugin with Composer: composer require pragmaticweb/primary-category. Activate the plugin in your WordPress in the usual manner.

Development Process

This plugin mostly follows the standard Git Flow model.

Scripts and Tooling

  • npm start -- Starts the build for development.
  • npm run build -- Builds the code for production.
  • npm run format:js -- Formats JavaScript files.
  • npm run lint:css -- Lints CSS files.
  • npm run lint:js -- Lints JavaScript files.
  • npm run packages-update -- Updates WordPress packages to the latest version.