Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbp_has_forums – filter based on ID


  • shanebp
    Participant

    @shanebp

    A site has 4 parent forums, each with several child forums.
    I want to filter bbp_has_forums based 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.
Skip to toolbar