Posts arranged by Sub Category in Category page, But not showing non Sub category items
I'm trying to create Category posts under each sub category, that's working but With out sub category items not showing...
?php $categories = get_categories('child_of='.get_queried_object()-term_id); if(!empty($categories)):
foreach ($categories as $category) {
$category_id = $category-term_id;
query_posts('cat='.$category_id.order=ASC);
if ( have_posts() ):?
h3?php echo $category-name; ?span/span/h3
ul class=latest-archive
?php while ( have_posts() ) : the_post(); ?lia href=?php the_permalink();??php the_title(); ?/a/li
?php endwhile;?
/ul
?php endif;} endif; ?
Topic link-category categories archives Wordpress
Category Web