Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $swp_query = new SWP_Query( array( 's' => 'coffee' ) );
- if ( $swp_query->have_posts() ) {
- while ( $swp_query->have_posts() ) {
- $swp_query->the_post();
- get_template_part( 'content', 'search' );
- }
- } else {
- echo '<p>No results found!</p>';
- }
Add Comment
Please, Sign In to add comment