跳到内容

Name Support

v0.1

mitcho (Michael Yoshitaka Erlewine) · 2011年12月24日 上架

Infrastructure plugin which adds UI support for custom post types with names instead of titles, e.g. "person" custom post types.

正在使用
10 以下
评分
暂无
累计下载
1,484
最近更新
2011年12月24日
需要 WordPress 3.2+已测试到 3.3.2

截图

An example of the name entry UI which replaces the regular title entry UI.
An example of the name entry UI which replaces the regular title entry UI.

If you need to implement a custom post type for human beings, where in lieu of a title you need a name, this plugin will add the proper UI. See screenshots for an example.

Usage

When creating your custom post type, just make sure you specify name as one of the post type’s features. (As of version 0.1, the title feature, quite counterintuitively, is also required as in the example below.)

register_post_type( 'people', array(     'label' => 'People',     'supports' => array( 'title', 'name', ... )     ... ) ); 

Name Support also gives you the template tags the_name() and get_the_name() which prints or returns the name in “[First Name] [Last Name]” format.

Development of this plugin was supported by the Arts at MIT.

Plums

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

导航

说明

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

© 2026 Plums