Warning: Undefined array key -1 in
/www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line
185
Warning: Undefined array key 3 in
/www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line
186
Warning: Undefined variable $searchand in
/www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line
154
Warning: Undefined array key "0df897c8dc4c1c33f0c7c3302f7c46b1" in
/www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line
223
Warning: Undefined variable $searchand in
/www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line
154
Warning: Undefined array key "1a4541a803a48108dcb6f8964b22d929" in
/www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line
223
描述
此模板的层次结构如下所示:
- {mime_type}-{sub_type}.php
- {sub_type}.php
- {mime_type}.php
- attachment.php
例如:
- image-jpeg.php
- jpeg.php
- image.php
- attachment.php
模板层次结构和模板路径可通过‘$type_template_hierarchy’和‘$type_template’动态钩子进行过滤,其中$type是“attachment”。
另见
更新日志
| 版本 | 描述 |
|---|
| 4.3.0 | mime类型逻辑的顺序颠倒了,因此层次结构更具逻辑性 |
| 2.0.0 | 开始引入 |
Warning: Undefined variable $o in
/www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference.php on line
194