Projects Query
Script per la home page del post type project
// WP_Query arguments $args = array( 'post_type' => array( 'projects' ), 'posts_per_page' => '3', ); // The Query $query_projects_post_type = new WP_Query( $args ); // The Loop if ( $query_projects_post_type->have_posts() ) { while ( $query_projects_post_type->have_posts() ) { $query_projects_post_type->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata();