Skip to content

Instantly share code, notes, and snippets.

@kubatyi
Created July 25, 2017 15:14
Show Gist options
  • Save kubatyi/6ff7bba7c9517b7fbc045615f618e50a to your computer and use it in GitHub Desktop.
Save kubatyi/6ff7bba7c9517b7fbc045615f618e50a to your computer and use it in GitHub Desktop.
Query post #Wordpress
<?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(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment