i think code below:
$cat = get_query_var(‘cat’);
query_posts(array(‘category__in’ => array($cat), ‘posts_per_page’ => -1, ‘orderby’ => ‘date’,
‘order’ => ‘ASC’));
have problem parameter ‘category__in’ => array($cat) or ‘orderby’ => ‘date’
code second:
foreach( get_categories() as $cat_id ) {
$args=array(
‘cat’ => $cat_id,
‘post_type’ => ‘post’,
‘post_status’ => ‘publish’,
‘posts_per_page’ => 2,
‘caller_get_posts’=> 1
);
}
have problem parameter ‘cat’ => $cat_id ($cat_id is array)
give me question:
do you need any posts ?
can i help you?
sorry, my english is very bad, not describle good