Skip to content

Instantly share code, notes, and snippets.

@denys-vladymyrov
Last active May 2, 2016 18:29
Show Gist options
  • Save denys-vladymyrov/39de6fe72cb80d115c0e2a6d6d84ef40 to your computer and use it in GitHub Desktop.
Save denys-vladymyrov/39de6fe72cb80d115c0e2a6d6d84ef40 to your computer and use it in GitHub Desktop.
Wordpress
<?php if (have_posts()) : query_posts("p=2");
while(have_posts()) : the_post(); ?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php the_post_thumbnail(array(100, 100)); ?>
<?php endwhile; endif; wp_reset_query(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment