Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Problems with “Forum Is Category” in 1.0 Alpha-6


iftomkins
Participant

@iftomkins

I also wanted to stop the categories from displaying ‘0’ on my front page. I followed CK’s advice and edited my theme’s front-page.php file.

I changed

<?php forum_topics() ?>

to

<?php $cat_topics = get_forum_topics();
if ($cat_topics > 0) {
echo forum_topics();
}
else { echo ' '; }
?>

and

<?php forum_topics() ?>

to

<?php $cat_posts = get_forum_posts();
if ($cat_posts > 0) {
echo forum_posts();
}
else { echo ' '; }
?>

Skip to toolbar