Homepage › Community Forums › Epik Theme Support › Copy Portfolio Page Setup for Custom Post Type Archive Page › Reply To: Copy Portfolio Page Setup for Custom Post Type Archive Page
you can look at my post.
Basically I ditched genesis ();
and called the header and footer separately.
get_header();
get_footer();
I then added
do_action( ‘my_content_area’ ); between those two so:
get_header();
do_action( ‘my_content_area’ );
get_footer();
I went into the portfolio page copied it, pasted to a new php doc and started taking out what I didnt need including calls to remove things because I wasn’t using the genesis loop to begin with.
The biggest thing was adding the css to the portfolio loop from the style sheet.
// 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>';
Just the .content and .wrap the functions add the class for you.
Hope this Helps!
