2.5.3 提问:你如何创建⼀个⾃定义⽂章类型?提供⼀个⽰例。
创建⾃定义⽂章类型要创建⾃定义⽂章类型,需要使⽤ register_post_type 函数。以下是⽰例代码创建名为“产品”的⾃定义⽂章类型:// 注册⾃定义⽂章类型function register_custom_post_type() {register_post_type(),) );}以上代码会在 WordPress 中注册⼀个名为“产品”的⾃定义⽂章类型,并在后台管理界⾯中显⽰。“产品”⽂章类型可以像普通⽂章⼀样进⾏编辑、发布和管理。
10 Screens$8,029
I will design rough sketches for upto 5 Screens of your website/Mobile app.
3 Days
Delivery
1
Revision
- Source File
- Commercial Use
- Interactive Mockup
- 10 Pages
20 Screens$16,029
I will design rough sketches for upto 5 Screens of your website/Mobile app.
- Source File
- Commercial Use
- Interactive Mockup
- 10 Pages
30 Screens$24,029
I will design rough sketches for upto 5 Screens of your website/Mobile app.
- Source File
- Commercial Use
- Interactive Mockup
- 10 Pages