By default, WordPress will display sub classified articles on the classification page. If you want to display only the classified articles, but not the articles in the sub classification, you can use the following code.
In the main cycle of theme article archiving template:
- <? php while ( have_posts() ) : the_post(); ?>
- <? php endwhile ; ?>
Add above:
- <? php query_posts( array ('category__in' => array (get_query_var('cat')))); ?>
Add below:
- <? php wp_reset_query(); ?>
Most of the articles on this site are original and used for personal learning records, which may be helpful to you, for reference only!