Skip to:
Content

bbPress.org

Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#2526 closed idea (invalid)

Multiple Parent forum_ids in has_topics loops.

Reported by: macpresss's profile MacPresss Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Component - Topics Keywords:
Cc:

Description

bbp_has_topics() only can trigger a single parent_forum id.

Maybe it's a good idea to have the parent_forum option inside it's own array ? so you can do something like this.

'parent_forum' => array( 3, 44, 65, 103 )

List all posts from those forum_ids.

Or maybe bring back the 'exclude' => -2,-7,-22,-88 option.
To exclude those forum_ids. This feature was already inside bbPress 1.0

Change History (2)

#1 @johnjamesjacoby
11 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Try post_parent__in or post_parent__not_in when performing topic queries.

For reply queries, or combination topic/reply post types, you'll need to use a meta query, which will likely be pretty slow.

Closing as invalid. You'll likely want to open a forum topic to discuss this further.

#2 @johnjamesjacoby
10 years ago

  • Type changed from feature request to idea
Note: See TracTickets for help on using tickets.