Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Exclude Posts in Latest Discussions

I’m using this code:

<?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
<?php if( $topic->forum_id != 29 && $topic->forum_id != 30 && $topic->forum_id != 18 && $topic->forum_id != 15 && $topic->forum_id != 4 ) { //exclude forums here ?>
<tr<?php topic_class(); ?>>

If you’re using the Kakumei theme, replace this with that:

<?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
<tr<?php topic_class(); ?>>

Just change the id’s

Skip to toolbar