0
我不想显示特定页面的页面标题。如何在function.php中使用过滤器?WordPress:在function.php中删除带有过滤器的页面标题
我不想显示特定页面的页面标题。如何在function.php中使用过滤器?WordPress:在function.php中删除带有过滤器的页面标题
你的模板文件中,开放page.php文件
发现:
<?php the_title();?>
变化:
<?php
if(is_page('Your-Page-Name')){
//dont show title
}else{
the_title();
}
?>
所以在问题页面上,会出现显示 无标题但在其他页面上将显示其他页面标题