Skip to content

Instantly share code, notes, and snippets.

@Scordavis
Last active May 1, 2017 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Scordavis/af695fd8d909f0c7e350b875fae9aeff to your computer and use it in GitHub Desktop.
Save Scordavis/af695fd8d909f0c7e350b875fae9aeff to your computer and use it in GitHub Desktop.
Запрет вывода отрывка поста если цитата не задана / stop view begining of post if cite is undefined
<?php if ( have_posts() ) : query_posts('p=181');
while (have_posts()) : the_post(); ?>
<?php if(has_excerpt($id)){
the_excerpt();
} else {} ?>
<? endwhile; endif; wp_reset_query(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment