Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不想显示特定页面的页面标题。用function.php中的过滤器怎么会这样?
在您的模板文件中,打开 page.php
寻找:
<?php the_title();?>
改成:
<?php if(is_page('Your-Page-Name')){ //dont show title }else{ the_title(); } ?>
所以在有问题的页面上,不会显示标题,但在其他页面上会显示其他页面标题