Remove subforums on front page, make subforum index page
I know there are lots of topics out there that are similar, but I can’t find an answer that works for me. Much of the paste bin code is expired, and I have a custom theme which i think is complicating things.
So right now I my front page displays a list of all the forums. I want it to stay that way when i add child forums, and I want to click on the parent forums to go to a list of subforums/child forums.
Instead of this, the children just get added to the end of the list.
<?php if ( bb_forums("depth=1") ) : ?>
<?php while ( bb_forum() ) : ?>
<div<?php bb_forum_class('bb-category'); ?>>
<?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small>', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?>
<?php endwhile; ?>
You can view the forum here: http://totallyadd.com/forum
The last category ‘Ritalin’ is suposed to be a child of ‘medication’.
Can anyone point me in the right direction?
- You must be logged in to reply to this topic.