[Category problem] Posts from some category
-
I want to make my page 3 shows the latest posts from the respective printed categories when I click on that category.
I found a code that can only be fixed to determine the categories to be always the same as I do not need.Now, when I click on the category menu above link to expel link
http://www.moja-stranica.com/?cat=3
but it still shows me posts from these fixed categories, which was placed in the LoopIs there a possibility to load the above categories?
<?php $catquery = new WP_Query( 'cat=17&posts_per_page=3' ); while($catquery->have_posts()) : $catquery->the_post(); ?> <div class="col span_1_of_3"> <?php if (has_post_thumbnail()) : ?> <?php the_post_thumbnail(); ?> <?php endif; ?> <div class="box<?php echo $counter--; ?>"> <a href="<?php the_permalink(); ?>"><h2><?php the_title(); ?></h2></a> <p><?php the_excerpt(); ?></p> <a href="<?php the_permalink(); ?>"><h3>>> Pročitaj više <<</h3></a> </div> </div> <?php endwhile; ?>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘[Category problem] Posts from some category’ is closed to new replies.