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

RS Simple Category Selector

描述

If you have more than one category associated with a post, how do you tell which category takes precedence? This plugin gives you the ability to promote the category to the main one on the post edit page.

This gets stored in post meta for later use. Soon, I will add some simple functions that will allow you to get the main category on the front end.

Use

  • You can use the shortcode [rs_print_main] inside the post to print out the category title.
  • In the theme, you can use rs_get_main_category_id( $post_id ) to return (not print) the id of the main category.

安装

  1. Upload the plugin files to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

评价

此插件暂无评价。

贡献者及开发者

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

贡献者