ID; $posts_per_page = 9999; $query_string = "posts_per_page=".$posts_per_page; $query_string .= "&post_type=portfolio"; //$query_string .= "&portfolio_entries=".$k_option['portfolio']['matrix_slider_port_final'][$post->ID]; //doesnt work in wp3.0 // the query string now looks like this: // "cat=3,10,12&posts_per_page=9&paged=$paged"; // you can add additional query options if you want, all of them are described here: // http://codex.wordpress.org/Template_Tags/query_posts#Examples // append this parameters with the "&" sign // example: $query_string = $query_string."&orderby=author&order=ASC"; $additional_loop = new WP_Query($query_string); $categories = get_categories('title_li=&orderby=name&hide_empty=0&taxonomy=portfolio_entries&include='.$k_option['portfolio']['matrix_slider_port_final'][$post->ID]); echo '