Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How do I loop through EACH forum?


Ashfame
Participant

@ashfame

Although I havn’t tested it but it should work:

<ul>
<?php
$count=0;
if ( $topics )
{
foreach ( $topics as $topic)
{
$doof = $topic->forum_id;
if ($doof=="1")
{
if($count<3)
$count++;
else
break;
?> <li><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a> | <?php topic_page_links(); ?></li>
<?php } } } ?>
</ul>

Skip to toolbar