Last active
May 1, 2017 19:26
-
-
Save Scordavis/af695fd8d909f0c7e350b875fae9aeff to your computer and use it in GitHub Desktop.
Запрет вывода отрывка поста если цитата не задана / stop view begining of post if cite is undefined
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=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