【发布时间】:2015-04-24 15:32:18
【问题描述】:
我使用 wordpress 2013 模板创建了一个子主题。
我想在 the_content() 之后添加一些内容,所以我做了一个这样的过滤器:
function bluebaronhomepage(){
$content .= '<h1>hello from extra content</h1>';
return $content;
}....
add_filter('the_content', 'bluebaronhomepage');
这将覆盖页面中的内容并仅显示“你好....”。我希望它会在最后附加 hello 的内容
【问题讨论】: