-
-
Save Scordavis/da475abac2b6549deb9a3bd2c2a31681 to your computer and use it in GitHub Desktop.
использовать query_posts() может быть опасно https://wp-kama.ru/function/query_posts#vazhno-ispolzovat-query_posts-mozhet-byt-opasno
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( have_posts() ) : query_posts('p=1'); | |
while (have_posts()) : the_post(); ?> | |
<?php the_title(); ?> | |
<?php the_content(); ?> | |
<?php the_excerpt(); ?> | |
<?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
использовать query_posts() может быть опасно
https://wp-kama.ru/function/query_posts#vazhno-ispolzovat-query_posts-mozhet-byt-opasno