Plugin info

Total downloads: 4,875
Active installs: 30
Total reviews: 2
Average rating: 4.5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 8/5/2018 (2758 days ago)
Added to WordPress: 5/17/2016 (9 years old)
Minimum WordPress version: 3.4
Tested up to WordPress version: 4.9.28
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 2758 days ago • 2 reviews

22/100

Is Primary Categories abandoned?

Possibly abandoned (last update 2758 days ago).

Compatibility

Requires WordPress: 3.4
Tested up to: 4.9.28
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Whale-Kit
Rating 0.0/5 (0 reviews)Active installs 10
Shortcoder — Create Shortcodes for Anything
Rating 4.9/5 (224 reviews)Active installs 100,000
Column Shortcodes
Rating 4.8/5 (134 reviews)Active installs 70,000
Sidebar Widgets by CodeLights
Rating 4.7/5 (35 reviews)Active installs 50,000
Shortcodes by Angie Makes
Rating 4.8/5 (30 reviews)Active installs 30,000
ND Shortcodes
Rating 3.1/5 (14 reviews)Active installs 20,000

Description

WordPress plugin for setting and displaying primary categories for posts and custom post types*.

This plugin creates a meta box on the post edit screen titled “Primary Category” containing a drop down menu populated with all categories associated with that post**. Selecting a primary category and updating the post saves this data into a custom field with a meta key of “primary-category”.

To display a list of all posts with a particular primary category, use the shortcode [primary-category name=”cat_name”] where cat_name is the name of the primary category you wish to display. If a name is not specified, the shortcode will default to all posts with “uncategorized” set as the primary category.

*Note: Custom post types must support both categories and custom fields.

**Note: As new categories are added to a post, the post must be updated before those new categories will be available for selection as a primary category.

Installation

This section describes how to install the plugin and get it working.

  1. Upload the ‘primary-categories’ directory to your ‘/wp-content/plugins/’ directory, or install the plugin through the WordPress plugins screen directly
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Select the primary category for each post via the post edit screen
  4. Place shortcode to the content of any post type or access the data via the post meta key ‘primary-category’

Frequently Asked Questions

How can I access the primary category data?

A post’s primary category is stored in the post meta under the key ‘primary-category’.

What shortcode can I use to display posts with a particular primary category?

[primary-category name=””]

*Note: Name should reference the primary category that is to be displayed, if no name is specified, the name parameter defaults to ‘uncategorized’.

Why isn’t the category I added available as a primary category?

Users must update a post after adding a new category before that category will be available as a primary category.

Review feed

No reviews available

Screenshots

  1. Example of post edit screen with primary category meta box.

    Example of post edit screen with primary category meta box.

  2. Example of shortcode being used in page.

    Example of shortcode being used in page.

  3. Example output of shortcode.

    Example output of shortcode.

Changelog

1.0.0

Initial Commit