跳到内容

RS Simple Category Selector

v1.0

Rob Saurini · 2012年4月19日 上架

Gives you the ability to promote categories associated with a post.

正在使用
10+
评分
暂无
累计下载
1,831
最近更新
2012年9月22日
需要 WordPress 3.2+已测试到 3.4.2

贡献者

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums