Generic Parent Child Custom Post Types
v1.0Sandy McFadden · 2012年2月6日 上架
Generic parent child custom post type is simply a plugin that gives an example of how to create two custom post types where one is the parent and you …
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 1,805
- 最近更新
- 2012年2月7日
需要 WordPress 3.0+已测试到 3.3.2
贡献者
Generic parent child custom post type is simply a plugin that gives an example of how to create two custom post types where one is the parent and you can assign any number child posts to it.
The two post types are called Parents and Children. As an example you could call them Car Dealership and Cars and assign a bunch of cars to a dealership.
There is an example template file included which displays the parent post as well as a list of all the children posts assigned to it.
It’s really more of a starting point but it does work.
Requires WordPress 3.0 and PHP 5.