$category):
//get parent
$class_active = ( $j == 0 ) ? 'in active' : '';
if( is_front_page() || is_home()) {
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : ( ( get_query_var( 'page' ) ) ? get_query_var( 'page' ) : 1 );
} else {
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
}
if( is_front_page() || is_home() || $post->ID == 76) {
?>
$category,
'post_type' => 'post',
'posts_per_page' => $posts_per_page ,
'orderby' => "{$order}",
'order' => "DESC",
'ignore_sticky_posts' => true,
'post_status' => 'publish',
//'paged' => $paged
);
//echo $order; die();
$posts = new WP_Query($args);
if($posts->have_posts()):
$firstPost = true;
?>
have_posts()): $posts->the_post(); ?>
-
Hiện không có bài viết nào trong chuyên mục này";
endif;
}?>