Skip to content

Instantly share code, notes, and snippets.

@kom1che
Forked from agragregra/WordPress query_posts
Created August 14, 2017 05:49
Show Gist options
  • Save kom1che/8305edfcbf2c0b9b55822498962d1ef6 to your computer and use it in GitHub Desktop.
Save kom1che/8305edfcbf2c0b9b55822498962d1ef6 to your computer and use it in GitHub Desktop.
<?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(); ?>
@kom1che
Copy link
Author

kom1che commented Aug 14, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment