Plugin info

Total downloads: 40,808
Active installs: 1,000
Total reviews: 4
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 2
Last updated: 5/27/2023 (996 days ago)
Added to WordPress: 8/22/2017 (8 years old)
Minimum WordPress version: 4.5
Tested up to WordPress version: 6.2.8
Minimum PHP version: 5.6

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 996 days ago • 4 reviews

22/100

Is Easy Primary Category abandoned?

Possibly abandoned (last update 996 days ago).

Compatibility

Requires WordPress: 4.5
Tested up to: 6.2.8
Requires PHP: 5.6

Similar & Alternatives

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

Simple Primary Category
Rating 5.0/5 (1 reviews)Active installs 200
WordPress Primary Category
Rating 0.0/5 (0 reviews)Active installs 30
Top Cat
Rating 0.0/5 (0 reviews)Active installs 10
Primary Category
Rating 0.0/5 (0 reviews)Active installs 10
Select Primary Category
Rating 0.0/5 (0 reviews)Active installs 0
Primary Addon for Elementor
Rating 5.0/5 (2 reviews)Active installs 8,000

Description

Notice: Currently works only with WordPress Classic Editor, not Gutenberg compatible

Allows you to choose primary category for posts and custom post types.

When the permalink structure includes category, the category marked as Primary, will be used for generating the permalink of the post.

Works with custom post types and custom taxonomies as long as the taxonomy supports hierarchical structure.

Installation

  1. Add the plugin’s folder in the WordPress’ plugin directory.
  2. Activate the plugin.
  3. Now you will have the ability to make any category a primary category for the post

Frequently Asked Questions

Why I can’t see the “Make Primary” button?

The button is displayed only when more than one category is selected, try assigning other categories to the post, as soon as there’s more than one category selected, the “Make Primary” button will appear.

Developers’ Notes

If you want to fetch posts belonging to a particular term you can use this:
if ( function_exists( 'epc_get_primary_term_posts' ) ) {
/**
* Assuming you want to fetch 10 published posts which have category ID 2
* marked as primary category
*/
$posts = epc_get_primary_term_posts( 2, array(
'post_status' => 'publish',
'posts_per_page' => 10,
'post_type' => 'post',
) );
}

How can I contribute?

Want to contribute to Easy Primary Category? That would be awesome!
1. Reporting bugs or asking questions
2. Submitting Pull Requests
3. Translating in your own language

Review feed

No reviews available

Screenshots

  1. Click the "Make Primary" button to mark the category as primary.

    Click the "Make Primary" button to mark the category as primary.

Changelog

1.1.1

  • Made code WordPress coding standards compatible.
  • Tested with latest version of WordPress.

1.1

  • Escaping some output values.
  • Better documentation in the code.
  • Strict type checking of all the objects.
  • Added a few empty index files to prevent directory listing on poorly configured servers.
  • Adhering to WordPress PHPCS standards.

1.0

  • Initial public release.

0.1

  • Initial Development.