Skip to content

Instantly share code, notes, and snippets.

Created September 12, 2012 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3709991 to your computer and use it in GitHub Desktop.
Save anonymous/3709991 to your computer and use it in GitHub Desktop.
<?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