if( have_posts() ){ while( have_posts() ){ the_post(); // Add this line to ensure Elementor works the_content(); // Post Content (this may or may not have `the_content()`) get_template_part( 'templates/content', 'page' ); } // Reset Data wp_reset_postdata(); }else{ get_template_part( 'templates/content', 'none' ); }