Reply To: Is it possible to loop bbp_register_view ?
I realize this topic is more than six years old, but I’ve been attempting to achieve similar behavior, and adding the following code in a custom plug-in seems to work. I have a taxonomy of “ideacategory” and I’m able to create a bbPress view called “ideacat” that filters all of the topics where the category term is equal to “24-hour-market-watch.”
function idea_register_custom_views() {
bbp_register_view(
'ideacat',
esc_html__( 'Idea Category', 'bbpress' ),
apply_filters( 'bbp_register_view_ideacat', array(
'tax_query' => array(
array(
'taxonomy' => 'ideacategory',
'field' => 'slug',
'terms' => array( '24-hour-market-watch' )
)
),
'show_stickies' => false
)
) );
}
add_action( 'bbp_register_views', 'idea_register_custom_views' );