Category.php
But I use one code for all my categories.
Like this, in my category.php:
$category = get_category( get_query_var( 'cat' ) );
$cat_id = $category->cat_ID;
$the_query = new WP_Query(array(
'cat' => $cat_id,
'posts_per_page' => 5 ,
'offset' => 1
));
while ( $the_query->have_posts() ) :
$the_query->the_post();
?>
With this tutorial, I need to create a lot of slider, select the category one-by-one. But I need only one slider to get the category of page...
.
help.dimsemenov.com
No comments:
Post a Comment