我一直在创建一个儿童Wordrpess主题 . 父主题是TwentyTwelve主题 .
我重写styles.css文件,它完美地工作 . 但我不能替换我的functions.php上的the_excerpt函数
我一直在寻找,但我找不到解决方案 .
functions.php
<?php
function custom_excerpt($text) {
return "Test";
}
function my_child_theme_setup() {
add_filter('the_excerpt', 'custom_excerpt');
add_filter('get_the_excerpt', 'custom_excerpt');
add_filter('default_excerpt', 'custom_excerpt');
}
add_action( 'after_setup_theme', 'my_child_theme_setup' );
?>
我只是不想在链接原始帖子的摘录中显示特色图像 .
谢谢!