Re: Exclude Posts in Latest Discussions
This might be a cleaner solution
<?php
switch ( $topic->forum_id ) { // Ignore these forums
case 29:
case 30:
case 18:
case 15:
case 4:
continue 2;
}
?>
or for including only certain forums
switch ( $topic->forum_id ) { // Include only these forums
case 29:
case 30:
case 18:
case 15:
case 4:
break;
default:
continue 2;
}
?>
but using that if statement, you need to change the line
<?php if( $topic->forum_id != 29 && $topic->forum_id != 30 && $topic->forum_id != 18 && $topic->forum_id != 15 && $topic->forum_id != 4 )
and you can find the forum ID from looking at its Edit URL in the admin panel (under Forums)