Created
June 1, 2018 01:49
-
-
Save hemerson321/0b00c2aed9e16aa3686f77a684fa74da to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
$args = array( | |
'post_type' => 'post', | |
's' => 'Expresso', | |
); | |
?> | |
<?php $the_query = new WP_Query( $args ); ?> | |
<?php if ($the_query->have_posts()): while ($the_query->have_posts()) : $the_query->the_post();?> | |
<!--Exibir todos os posts com a palavra expresso sem repetição --> | |
<?php the_title ();?> | |
<?php endwhile; else:?> | |
<?php endif;?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment