【发布时间】:2015-01-30 17:08:38
【问题描述】:
我创建了几个这样的模板文件:
<?php
/*
Template Name: My Template 1
*/
get_header('my-template-1');
while ( have_posts() ) : the_post();
the_content();
endwhile;
get_footer('my-template-1');
?>
我可以为我网站的每个页面分配一个模板。
问题:
如何使这些模板的特定部分在管理员中可编辑?
例如,我希望有一个包含特定文本的字段(分配给一个模板),如果我编辑并保存此字段 - 更新后的文本应该出现在使用此特定模板的所有页面中。
【问题讨论】:
标签: wordpress wordpress-theming