Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if( $loop->have_posts() ):
- while ( $loop->have_posts() ):
- $loop->the_post();
- // Do stuff for results
- echo '<h2>' . the_title() . '</h2>';
- // Check for tag
- if(has_tag($tag) { output HTML if true }
- endwhile;
- else:
- echo "No Results!";
- endif;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement