Create a gist now

Instantly share code, notes, and snippets.

anonymous /gist:3709991
Created Sep 12, 2012

What would you like to do?
<?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; ?>
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<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>
<?php endif; ?>
<?php endwhile;?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment