public
anonymous / gist:3709991
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<?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;?>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.