aprydatko
2/26/2017 - 2:56 PM

WordPress query_posts

WordPress query_posts

<?php if ( have_posts() ) : query_posts('p=1');
while (have_posts()) : the_post(); ?>

<?php the_title(); ?>
<?php the_content(); ?>
<?php the_post_thumbnail(array(100, 100)); ?>

<? endwhile; endif; wp_reset_query(); ?>