bbp_has_forums – filter based on ID
A site has 4 parent forums, each with several child forums.
I want to filter
bbp_has_forumsbased on the ID of one or more parent forum IDs.
In this example, I expect the results to only include forums whose parent ID is 886, but all forums are displayed.
<?php $args = array( 'post__parent_in' => array( 886 ) ); ?> <?php if ( bbp_has_forums( $args ) ) : ?>
Is this possible?
Am I missing something obvious?
- You must be logged in to reply to this topic.