wordpress开发手册
2.3 PHP
3.2 WordPress 插件结构和⽣命周期

2.5 Custom Post Types and Taxonomies

在WordPress主题中集成⾃定义字段和元框是⼀种定制化内容展⽰的常见需求。使⽤⾃定义字段可以为⽂章添加额外的信息,⽽元框可以为编辑⽂章提供更灵活的界⾯。以下是集成⾃定义字段和元框的⽰例:集成⾃定义字段

1. 在主题的functions.php⽂件中添加以下代码:function display_custom_fields_box($post){}

2. 在⽂章编辑页⾯即可看到⾃定义字段框。集成元框

1. 在主题的functions.php⽂件中添加以下代码:}function display_meta_box($post){}

2. 在⽂章编辑页⾯即可看到元框。

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.

3 Days Delivery
  • 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.

3 Days Delivery
  • Source File
  • Commercial Use
  • Interactive Mockup
  • 10 Pages
1.795487s