在search.php
我有这个密码→
<div class="main col">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php get_template_part(\'content\',get_post_format()); ?>
<?php endwhile; ?>
<?php else: ?>
<?php get_template_part(\'content\', \'none\'); ?>
<?php endif; ?>
</div>
实际上,它是从内容中提取内容。php,它主要是为索引而构建的。php。在我的搜索中有很多我不想要的东西。php让我详细解释一下,但在我这样做之前,让我向您展示我的live页面here, 这是一个WordPress网站。
所以基本上在我的搜索页面结果中,我不想要这些东西→
- https://www.screencast.com/t/vZfIUrOc87https://www.screencast.com/t/cG0nj0lcHbhttps://www.screencast.com/t/PXxueQeeVKF5