我想禁止在中的博客和整个网站中显示摘录functions.php 文件
这不管用
add_filter( \'excerpt_more\', \'__return_empty_string\' );
我想禁止在中的博客和整个网站中显示摘录functions.php 文件
这不管用
add_filter( \'excerpt_more\', \'__return_empty_string\' );
你需要打电话remove_post_type_support()
在您的functions.php
就像这样:
/**
* Remove unwanted features.
*/
add_action(\'init\', \'my_theme_remove_post_type_support\');
function my_theme_remove_post_type_support() {
remove_post_type_support(\'post\', \'excerpt\');
}
Put this code in functions.php
file and check it.
function disable_excerpt_more( $more ) {
return \'\';
}
add_filter( \'excerpt_more\', \'disable_excerpt_more\' );
我有一个包含一些子页面的父页面。我想做的是在父页面上的自己的单元格中显示每个子页面摘录和一些其他信息。有人知道如何做到这一点吗?<div class=\"parent page\"> <?php $args = array( \'parent\' => $post->ID, \'post_type\' => \'page\', \'post_status\'