Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Untitled Snippet

// WP_Query arguments
$args = array(
	'post_parent'            => '''',
	'post_type'              => array( 'forum' ),
	'post_status'            => array( 'publish' ),
	'order'                  => 'ASC',
	'orderby'                => 'menu_order',
);

// The Query
$brandia_bbpress_parent_forum = new WP_Query( $args );

// The Loop
if ( $brandia_bbpress_parent_forum->have_posts() ) {
	while ( $brandia_bbpress_parent_forum->have_posts() ) {
		$brandia_bbpress_parent_forum->the_post();
		// do something
	}
} else {
	// no posts found
}

// Restore original Post Data
wp_reset_postdata();