Skip to:
Content

bbPress.org

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#1972 closed enhancement (invalid)

add some values to $wp_query

Reported by: alexvorn2's profile alexvorn2 Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.1.2
Component: Back-end Keywords:
Cc:

Description

like [is_bbp] => 1, so including a specific code in the templete to know that if this is bbPress page (forum, topic, edit-reply, user, edit-user, etc...) or not...

I mean to tell the page that this is a bbPress page an not other...

Change History (4)

#1 @alexvorn2
11 years ago

I fount that we can use bbp_is_theme_compat_active() for this, but I'm not very sure...

#2 @jaredatch
11 years ago

  • Component changed from General to Back-end
  • Type changed from defect to enhancement

What's the use case?

You can likely use is_bbpress().

I believe you could use it with pre_get_posts() if needed, though not directly in the query.

#3 @alexvorn2
11 years ago

  • Resolution set to invalid
  • Status changed from new to closed

#4 @johnjamesjacoby
11 years ago

  • Milestone Awaiting Review deleted

When closing tickets that are in awaiting review, please mark the milestone as empty.

Note: See TracTickets for help on using tickets.