Skip to content

Instantly share code, notes, and snippets.

View kubatyi's full-sized avatar

Nazar Kubatyi kubatyi

  • Avenga
View GitHub Profile
@kubatyi
kubatyi / query.php
Created July 25, 2017 15:14
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(); ?>