plugin-icon

Primary Categories

لصاحبه Jacob McKinney·
WordPress plugin for setting and displaying primary categories for posts and custom post types.
التقييم
4.5/5
النسخة
1.0.0
التنصيبات النشطة
30
آخر تحديث
Aug 5, 2018
Primary Categories

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.

مجانيعلى خطة Business
إذا أتممت بالتثبيت، فإنك توافق على شروط خدمة ووردبريس.كوم ووشروط إضافات الأطراف الثالثة.
تم اختباره حتى
WordPress 4.9.28
تتوفّر هذه الإضافة للتنزيل لتُستخدم في عملية التثبيت لديك.