Created
September 12, 2012 21:17
-
-
Save anonymous/3709991 to your computer and use it in GitHub Desktop.
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 $the_query = new WP_Query( 'showposts=10&cat=-11' ); ?> | |
<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?> | |
<?php if (comments_open()) : ?> | |
<div class="entry cf"> | |
<div class="commentcount"><a href="<?php comments_link(); ?>" class="commentno"><?php comments_number('0','1','%'); ?></a><p>Answers</p> | |
<?php if (!comments_open()) : ?> <p class="statusclosed">Resolved</p><?php else : ?> | |
<p class="statusopen">Not Resolved</p><?php endif; ?> | |
</div> | |
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> | |
<ul> | |
<li class="entryasked">Asked By: <a href="<?php the_author_profile();?>"><?php the_author(); ?></a></li> | |
<li class="entrytags"><?php if ( function_exists('the_tags') ) { the_tags(); } ?></li> | |
</ul> | |
</div> | |
<?php endif; ?> | |
<?php endwhile;?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment