May 2017
Beginner to intermediate
536 pages
14h 25m
English
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']; ...Read now
Unlock full access