Title: Simple Primary Category
Author: Ashar Irfan
Published: <strong>2020 年 5 月 7 日</strong>
Last modified: 2023 年 11 月 24 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/simple-primary-category.svg)

# Simple Primary Category

 作者：[Ashar Irfan](https://profiles.wordpress.org/mrasharirfan/)

[下载](https://downloads.wordpress.org/plugin/simple-primary-category.1.1.1.zip)

 * [详情](https://cn.wordpress.org/plugins/simple-primary-category/#description)
 * [评价](https://cn.wordpress.org/plugins/simple-primary-category/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/simple-primary-category/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/simple-primary-category/#developers)

 [支持](https://wordpress.org/support/plugin/simple-primary-category/)

## 描述

A light-weight WordPress plugin to assign primary category to posts and custom post
types.

### How to Use

 1. Browse to any post or custom post type in WordPress admin.
 2. Check the taxonomies that you want to assign to it.
 3. Select the respective primary taxonomies.
 4. Save the post.
 5. Use this shortcode to query the posts: `spc_primary_term_posts`.
 6. Use the action hook — `spc_display_primary_term_posts` — to display the queried
    posts in your theme.

## 屏幕截图

 * [[
 * Gutenberg
 * [[
 * Classic Editor

## 安装

 1. Download the plugin.
 2. Login to your WordPress website dashboard.
 3. Navigate to Dashboard > Plugins.
 4. Click Add New and then Upload Plugin.
 5. Browse to the file, select it, and click Install Now.
 6. Click Activate Plugin once prompted.

## 评价

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

### 󠀁[Thanks!](https://wordpress.org/support/topic/thanks-2416/)󠁿

 [nudnavda](https://profiles.wordpress.org/nudnavda/) 2023 年 8 月 6 日

Somehow I lost the ability to set the primary category.Database cleaning etc. did
not restore it.Anyway, this small plugin came to the rescue 💐Glad you provided 
this function!

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/simple-primary-category/reviews/)

## 贡献者及开发者

「Simple Primary Category」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Ashar Irfan ](https://profiles.wordpress.org/mrasharirfan/)

[帮助将「Simple Primary Category」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-primary-category)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/simple-primary-category/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/simple-primary-category/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/simple-primary-category/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/simple-primary-category/)。

## 更新日志

= Version 1.1.1
 * Bumped tested up to tag

= Version 1.1.0
 * Added dependencies updates * Fixed bugs in classic editor * Updated
code formatting

= Version 1.0.0
 * Initial Release

## 额外信息

 *  版本 **1.1.1**
 *  最后更新：**2 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.4.8**
 *  PHP 版本 ** 7.3 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-primary-category/)
 * 标签
 * [category](https://cn.wordpress.org/plugins/tags/category/)[primary](https://cn.wordpress.org/plugins/tags/primary/)
   [taxonomy](https://cn.wordpress.org/plugins/tags/taxonomy/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-primary-category/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/simple-primary-category/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/simple-primary-category/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/simple-primary-category/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/simple-primary-category/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/simple-primary-category/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/simple-primary-category/reviews/)

## 贡献者

 *   [ Ashar Irfan ](https://profiles.wordpress.org/mrasharirfan/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/simple-primary-category/)