[buddypress-trac] [BuddyPress] #3275: The forum tab is not highlighted when the forum is displayed

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Jun 10 13:05:00 UTC 2011


#3275: The forum tab is not highlighted when the forum is displayed
----------------------------+-------------------------------
  Reporter:  lightcapturer  |      Owner:
      Type:  defect         |     Status:  closed
  Priority:  normal         |  Milestone:  Awaiting Review
 Component:  Theme          |    Version:  1.3
Resolution:  wontfix        |   Keywords:  reporter-feedback
----------------------------+-------------------------------
Changes (by DJPaul):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 Though I can't recreate the error exactly the same as you, when I create a
 page called "forums", with bbPress and BuddyPress active/set up, WordPress
 just loads up the Page called "forums" (not bbPress). And, yes, the menu
 item isn't selected (class=current_page_item).

 Tracing this back into wp_list_pages() ->
 $wp_query->get_queried_object_id(), $wp_query['query_vars']['post_type']
 is 'forum'. Because you are using the same URL name ("forums") as the
 registered root of one of bbPress' post types ("forum"). This then
 prevents the current_page_item class being set correctly.

 Though this is unfortunate in this case, everything's working correctly.
 You'll either have to use a page slug other than "forums" for your page in
 the navigation, or use custom menus and create a http://.../forums/ link.

-- 
Ticket URL: <https://trac.buddypress.org/ticket/3275#comment:4>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list