Skip to content

Instantly share code, notes, and snippets.

@agragregra
Last active November 23, 2023 14:47
Show Gist options
  • Save agragregra/6a7b15241d7142781f2a to your computer and use it in GitHub Desktop.
Save agragregra/6a7b15241d7142781f2a 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)); ?>
<?php endwhile; endif; wp_reset_query(); ?>
@pivovar
Copy link

pivovar commented May 6, 2015

Выдавал ошибку пока не исправил последнюю строчку на

@shhhmel
Copy link

shhhmel commented Jun 30, 2016

pivovar +

@kohav
Copy link

kohav commented Apr 25, 2017

Не исправил на что?

@Scordavis
Copy link

Scordavis commented Apr 27, 2017

@kohav Какие проблемы?

@yuriitaran
Copy link

В последней сточке <?php

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