Get topics of subscribed to forums?
I have this loop in my custom theme that lists the forums a user is subscribed to
<?php global $current_user; get_currentuserinfo(); $uid = bbp_get_current_user_id(); ?> <?php if ( bbp_get_user_forum_subscriptions( $uid ) ) : ?> <?php while ( bbp_forums() ) : bbp_the_forum(); ?> <p><?php bbp_forum_title(); ?></p> <?php endwhile; ?> <?php endif; ?>
I’m not sure if it is the most efficient technique but it is working fine.
Now I’m trying to retrieve the topics under those forums, if I’m subscribed to forum a and not b, how can I retrieve all the topics of only forum a?
- You must be logged in to reply to this topic.