Portfolio Query
// WP_Query arguments
$args = array(
'post_type' => array( 'portfolio' ),
'order' => 'ASC',
);
// The Query
$queryPortfolio = new WP_Query( $args );
// The Loop
if ( $queryPortfolio->have_posts() ) {
while ( $queryPortfolio->have_posts() ) {
$queryPortfolio->the_post();
// do something
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();