Skip to:

Opened 10 years ago

Closed 10 years ago

#2457 closed defect (bug) (fixed)

Shortcode bbp-single-view not working

Reported by: netweb's profile netweb Owned by: johnjamesjacoby's profile johnjamesjacoby
Milestone: 2.5 Priority: normal
Severity: normal Version: 2.4.1
Component: API - Shortcodes Keywords: needs-patch


Shortcode for 'Single View' [bbp-single-view id="A view slug"] is broken.


  • Create a page and add shortcode [bbp-single-view id="popular"]
  • Returns results Oh bother! No topics were found here!
  • Expected results: The same output as returned for /forums/view/popular/

Change History (2)

#1 @johnjamesjacoby
10 years ago

  • Milestone changed from Awaiting Review to 2.5

Will take a look. Thanks for the report.

#2 @johnjamesjacoby
10 years ago

  • Owner set to johnjamesjacoby
  • Resolution set to fixed
  • Status changed from new to closed

In 5163:

Introduce current_view_id to bbPress class variables. Used when calling a topic view shortcode via bbp-single-view so subsequent calls to bbp_view_query are able to retrieve the $view_id via bbp_get_view_id() the same way bbp_get_topic_id() works. Fixes #2457.

Note: See TracTickets for help on using tickets.