Title: Easy Primary Category
Author: Gagan Deep Singh
Published: <strong>22 أغسطس، 2017</strong>
Last modified: 10 فبراير، 2026

---

البحث عن الإضافات

![](https://ps.w.org/easy-primary-category/assets/icon-256x256.png?rev=1718895)

# Easy Primary Category

 بواسطة [Gagan Deep Singh](https://profiles.wordpress.org/gagan0123/)

[تنزيل](https://downloads.wordpress.org/plugin/easy-primary-category.1.1.1.zip)

 * [تفاصيل](https://ar.wordpress.org/plugins/easy-primary-category/#description)
 * [المراجعات](https://ar.wordpress.org/plugins/easy-primary-category/#reviews)
 *  [التنصيب](https://ar.wordpress.org/plugins/easy-primary-category/#installation)
 * [التطوير](https://ar.wordpress.org/plugins/easy-primary-category/#developers)

 [الدعم](https://wordpress.org/support/plugin/easy-primary-category/)

## الوصف

**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.

## لقطات الشاشة

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

Click the “Make Primary” button to mark the category as primary.

## التنصيب

 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

## الأسئلة المتكررّة

### 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](https://wordpress.org/support/plugin/easy-primary-category)
2. [Submitting Pull Requests](https://github.com/gagan0123/easy-primary-category)
3. [Translating in your own language](https://translate.wordpress.org/projects/wp-plugins/easy-primary-category)

## المراجعات

![](https://secure.gravatar.com/avatar/3064e401d8347334b261d59ccbdd2bd67cea8a52b1ff10c10e83806dbef40296?
s=60&d=retro&r=g)

### 󠀁[Excellent – just what I needed](https://wordpress.org/support/topic/excellent-just-what-i-needed-8/)󠁿

 [shaunbowen](https://profiles.wordpress.org/shaunbowen/) 7 أكتوبر، 2019

I needed to choose the primary category for some posts I was importing from an older
site, as Wordpress was choosing the wrong one. This has saved me setting up loads
of 301 redirects for the posts!

![](https://secure.gravatar.com/avatar/11f757145c6d64ae048ccfe6bd2c3a9c9be59776bb7a7babf6a35b09093c60bb?
s=60&d=retro&r=g)

### 󠀁[Another thank you – great plugin](https://wordpress.org/support/topic/another-thank-you-great-plugin/)󠁿

 [Exo](https://profiles.wordpress.org/richardshea/) 31 يوليو، 2019

Just another thank you here, love it. With a bit of manual coding in PHP I can now
determine which category is more suited to a Woo Commerce product instead of the
first of many selected.

![](https://secure.gravatar.com/avatar/7d84df2bb66f6d41026beb605533dad235ac30a56644d49a70a4e6a72a13d841?
s=60&d=retro&r=g)

### 󠀁[Excellent!!](https://wordpress.org/support/topic/excellent-7834/)󠁿

 [unitedonline](https://profiles.wordpress.org/unitedonline/) 29 يونيو، 2019

Great plugin! Saved me a lot of time while trying to put all my categories in order.
Does wonders for SEO and the dreaded duplicate content issue. Works great with WP
Version 5.2.2 Thanks for your effort.

![](https://secure.gravatar.com/avatar/518250680fd1c515c9bd560088b5bf7157d12c421fe49f3af3653170aeb6947d?
s=60&d=retro&r=g)

### 󠀁[thank you!](https://wordpress.org/support/topic/thank-you-1678/)󠁿

 [OgdenNews](https://profiles.wordpress.org/ogdennews/) 27 يوليو، 2018

This seems like something that should just be baked right into WordPress by default,
but for some reason it just isn’t. Controlling which category gets used for your
permalink is a big deal, but WordPress just doesn’t let you manage it. Why? I’ll
never know… The only other plugin I found that could do this was Yoast SEO, but 
that comes with a TON of extra stuff that we just don’t need/want running on our
sites. This was an incredible help and a great find! Thank you so much for making
this a dedicated plugin!

 [ إقرأ جميع المراجعات 4 ](https://wordpress.org/support/plugin/easy-primary-category/reviews/)

## المساهمون والمطوّرون

“Easy Primary Category” هو برنامج مفتوح المصدر. وقد ساهم هؤلاء الأشخاص بالأسفل في
هذه الإضافة.

المساهمون

 *   [ Gagan Deep Singh ](https://profiles.wordpress.org/gagan0123/)

[ترجمة ”Easy Primary Category“ إلى لغتك.](https://translate.wordpress.org/projects/wp-plugins/easy-primary-category)

### مُهتم بالتطوير؟

[تصفّح الشفرة](https://plugins.trac.wordpress.org/browser/easy-primary-category/)،
تحقق من [مستودع SVN](https://plugins.svn.wordpress.org/easy-primary-category/)، 
أو الاشتراك في [سجل التطوير](https://plugins.trac.wordpress.org/log/easy-primary-category/)
بواسطة [RSS](https://plugins.trac.wordpress.org/log/easy-primary-category/?limit=100&mode=stop_on_copy&format=rss).

## سجل التغييرات

#### 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.

## ميتا Meta

 *  Version **1.1.1**
 *  Last updated **قبل 5 أشهر**
 *  Active installations **1٬000+**
 *  WordPress version ** 4.5 أو أعلى **
 *  Tested up to **6.9.4**
 *  PHP version ** 5.6 أو أعلى **
 *  Language
 * [English (US)](https://wordpress.org/plugins/easy-primary-category/)
 * Tags
 * [category](https://ar.wordpress.org/plugins/tags/category/)[primary](https://ar.wordpress.org/plugins/tags/primary/)
 *  [عرض متقدم](https://ar.wordpress.org/plugins/easy-primary-category/advanced/)

## التقييم

 5 من 5 نجوم.

 *  [  4 5-star reviews     ](https://wordpress.org/support/plugin/easy-primary-category/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/easy-primary-category/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/easy-primary-category/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/easy-primary-category/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/easy-primary-category/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/easy-primary-category/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/easy-primary-category/reviews/)

## المساهمون

 *   [ Gagan Deep Singh ](https://profiles.wordpress.org/gagan0123/)

## الدعم

لديك شيء لتقوله؟ بحاجة الى مساعدة؟

 [عرض منتدى الدعم](https://wordpress.org/support/plugin/easy-primary-category/)

## تبرع

هل ترغب في تقديم دعم متقدم لهذه الإضافة؟

 [ تبرع لهذه الإضافة ](http://PayPal.me/gagan0123)