<?php 
/*
* Template Name: Archivio $CPTName
*/ 

/*
 * Add & Remove azioni
 */
remove_action('genesis_sidebar','genesis_do_sidebar');
remove_action('genesis_loop', 'genesis_do_loop');

/*
* Import global variables
*/
global ${DS}paged;
global ${DS}post;

/*
* Setting variables
*/
${DS}post_per_page = 10;

?>

<?php get_header(); ?>

<?php genesis_before_content_sidebar_wrap(); ?>
<div id="content-sidebar-wrap">

    <?php genesis_before_content(); ?>
    
    <?php genesis_before_loop(); ?>
    
    <?php
    ${DS}args = array( 'post_type' => '$CTPRealName', 'posts_per_page' => ${DS}post_per_page);
    ${DS}loop = new WP_Query( ${DS}args );
    while ( ${DS}loop->have_posts() ) : ${DS}loop->the_post();
        ${DS}postID = ${DS}post->ID;
    endwhile; 
    ?>
        
    <?php genesis_after_loop(); ?>

    <?php genesis_after_content(); ?>

</div><!-- end #content-sidebar-wrap -->
<?php genesis_after_content_sidebar_wrap(); ?>

<?php get_footer(); ?>