Displaying forum topics

We have completed the first two sections of the forums detail page, and this will be the final section of the template where we display the topics of the forum. The list of topics of the viewed forum should be ordered to display latest on the top. Also, we need to display additional information about the topic such as started by user, started date, and so on. Let's take a look at the implementation of topics list inside the single-forum.php template:

    <div id="wpwaf_forum_topics">     <?php foreach ($forum_topics as $key => $forum_topic) { ?>     <div class="wpwaf_forum_topic">     <div class="wpwaf_topic_sticky_status"><?php echo $forum_topic['sticky_status']; ?></div>  <div class="wpwaf_topic_author_image" ><?php echo $forum_topic['topic_author_image']; ...

Get Wordpress Web Application Development - Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.