Wordpress中的类别标题显示问题
下面是WordPress中某个类别的代码。当我希望它显示文章标题时,它会显示类别的名称。我如何让它显示文章的标题Wordpress中的类别标题显示问题,wordpress,wordpress-theming,Wordpress,Wordpress Theming,下面是WordPress中某个类别的代码。当我希望它显示文章标题时,它会显示类别的名称。我如何让它显示文章的标题 <? query_posts('category_name=implants'); ?> <h3><?php single_cat_title(); ?></h3> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php the_c
<? query_posts('category_name=implants');
?>
<h3><?php single_cat_title(); ?></h3>
<?php if (have_posts()) : while (have_posts()) :
the_post(); ?>
<?php the_content( __('Read the
rest of this page »', 'template')); ?>
<?php endwhile; endif; ?></p>
<?php
$query = new WP_Query('category_name=implants');
if($query->have_posts()) : while($query->have_posts()) : $query->the_post();
?>
<h3><?php the_title(); ?></h3>
<?php
the_content( __('Read the rest of this page »', 'template'));
endwhile; endif;
wp_reset_postdata();
?>