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

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.

评价

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条评价

贡献者及开发者

「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