';
$args = array(
'orderby' => $orderby,
'show_count' => $show_count,
'pad_counts' => $pad_counts,
'hierarchical' => $hierarchical,
'taxonomy' => 'portfolio category',
'title_li' => $title
);
echo '
';
$categories = get_categories($args);
foreach($categories as $category)
{
echo '
';
foreach($categories as $category) {
echo '
';
$port = new WP_Query(array('post_type' => 'portfolio','portfolio category'=> $category->slug ,'post_status' => 'publish','posts_per_page' => 10));
while($port->have_posts()) : $port->the_post();
?>
'; ?>
';
$cat_name = $category->slug;
?>
'portfolio',
'post_status' => 'publish',
'paged' => $page,
);
query_posts($args);
//$query = new WP_Query($args);
// if ( $query -> have_posts() ) : while ( $query -> have_posts() ) : $query -> the_post();
if ( have_posts() ) : while ( have_posts() ) : the_post();
?>
';
echo '
';
?>