Hiding subforms on your home page
I’ve seen this issue posted on multiple threads, but I couldn’t find the solution in any of them. my issue is simple: I want to hide children forums and only display parent forums on the main page of my site. My theme uses the following code to display the forum list:
<?php foreach ( $forums as $forum ) : ?>
<tr<?php alt_class(‘forum’); ?>>
<td>“><?php forum_name(); ?> — <small><?php forum_description(); ?></small></td>
<td class=”num”><?php forum_topics(); ?></td>
<td class=”num”><?php forum_posts(); ?></td>
<?php endforeach; ?>
What should I change?
You must be logged in to reply to this topic.