Wordpress. "the_post()" loop doesn't iterate on all posts -


loop on front page not showing results.

<?php define('wp_use_themes', false); get_header(); ?> <div class="site-row clear">     <div class="center">         <?php get_sidebar(); ?>         <div class="showcase">             <?php                 if ( have_posts() ) :                     while ( have_posts() ) : the_post();                         echo '1';                     endwhile;                 endif;             ?>         </div>     </div> </div> <?php get_footer(); ?> 

it's show '1', have lot posts. people, tell me please wrong?

upd. code in front-page.php . on local server posts showing, on hosting didn't show. instead echo '1' use the_content(). echo '1' debugging.


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -