【发布时间】:2017-01-10 10:23:36
【问题描述】:
我在functions.php中为“the_content”添加了一个过滤器
add_filter ('the_content', 'testFilter');
function testFilter($content) {
if(is_single()) {
$content.="Append content";
}
return $content;
}
现在在我的 content-post.php 中。我有以下行:
the_content(__('Test;', 'tag') );
如何将 testFilter 排除在 content-post.php 页面上?
【问题讨论】:
标签: php wordpress wordpress-theming