Skip to content

Ritesh-patel/wp-primary-category

Repository files navigation

WP Primary Category

A simple plugin to set primary category of a post.

Description

WP Primary Category allows post authors to set primary category for a post which have multiple categories.

How To Use

  • Each post's primary category will be stored in post meta
  • Meta key _wpc_category_primary will hold the category id of primary category

Screenshots

Set Primary

set-primary

Unset Primary

unset-primary

Support For Custom Taxonomies

  • Use wpc_allow_custom_taxonomies filter and return true to enable Custom Taxonomy support
  • Meta key _wpc_taxonomyname_primary will hold term id of Custom Taxonomy. Replace taxonomyname with your Custom Taxonomy name

About

WordPress plugin to set primary category of a post.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published