Last rely, query_posts and link to the reply.
I try desperately to create some kind of widget for my blog with last forum entries .
I think query_posts was indicated because it is simple and effective.
here is the code I use to fully control the design of my widget.
while (have_posts()) : the_post();
<div class=”thumb”><?php echo get_avatar( get_the_author_id() , 60 ); ?></div>
<small>De <?php the_author_posts_link(); ?> <span class=”red”>♥</span> <span class=”tag”><?php the_tags(‘#’,', #’); ?></span></small>
<?php the_excerpt(); ?>
</div><!– fin de post –>
<?php endwhile; ?>
</div><!– last reply–>
I have 3 problems so that my poor php skills prevents me to solve.
1 / the title is not good, it starts with “reply to” it would have been clearer to the title of the topic directly.
2 / the link isn’t the link to topic but the link for the answer!
3 / but it’s going to be warmer, I wish to join the last replies to the last comment into a single widget, except that query_posts doesn’t work with the comments ^ ^
would you have a little time to devote to my request? Thank you in advance.
You must be logged in to reply to this topic.