Homepage › Community Forums › Epik Theme Support › Adding Portfolio Inside Custom Post › Reply To: Adding Portfolio Inside Custom Post
I love how Ive walked myself through this haha, trouble is im looking at the epik code but using a totally different aproach
anyhow I wrapped the portfolio loop like this
// Add custom loop
function portfolio_loop() {
echo '<div class="content"><div class="wrap">';
$paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;
$include = genesis_get_option( 'epik_portfolio_cat' );
$exclude = genesis_get_option( 'epik_portfolio_cat_exclude' ) ? explode(',', str_replace(' ', '', genesis_get_option( 'epik_portfolio_cat_exclude' ))) : '';
$cf = genesis_get_custom_field( 'query_args' ); // Easter Egg
$args = array( 'cat' => $include, 'category__not_in' => $exclude, 'showposts' => genesis_get_option( 'epik_portfolio_cat_num' ), 'paged' => $paged);
$query_args = wp_parse_args($cf, $args);
genesis_custom_loop( $query_args );
}
echo '</div></div>';
now all is happy in the world!
