Created
March 31, 2011 20:19
-
-
Save DTrejo/897172 to your computer and use it in GitHub Desktop.
show post if tag
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
<!-- start auto-generated posts --> | |
<?php while (have_posts()) : if (has_tag('featured')) { the_post(); } ?> <!-- <== BROKEN HERE --> | |
<div class="content" style="background: url(<?php bloginfo('template_url'); ?>/images/dummy-images/coffee.jpg);"> | |
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> | |
<div class="entry"> | |
<?php the_content(); ?> | |
</div> | |
</div> | |
<?php endwhile; ?> | |
<!-- end auto-generated posts --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment