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

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -