I’m not necessarily looking for someone to write out the code for me. I’m just looking for some general direction on how to get it done. Any links to other resources would be super valuable.
Like I said in the opening of my post, I’m looking to display the user’s subscribed to topics and forums on the homepage of the site. Here’s the actual design I’m going for – https://i.imgur.com/zoAhh5G.png. I pretty much just want to emulate what’s happening on the profile level forums page within my custom ACF block.
I actually don’t have much written as it wasn’t doing squat at the time! Lol. And it’s not a true Gutenberg block, it’s just an ACF block that pulls in some PHP. Really what I tried most was using
<?php if ( bbp_get_user_forum_subscriptions() ) : ?>
<?php bbp_get_template_part( 'loop', 'forums' ); ?>
<?php else : ?>
<?php bbp_get_template_part( 'feedback', 'no-forums' ); ?>
<?php endif; ?>
However, when displaying that content within any standard page and passing the current user ID into bbp_get_user_forum_subscriptions()
, it only outputs a single forum subscription.