#1978 closed defect (invalid)
bbp_replace_the_content function
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 2.1.2 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
When I start using bbPress the first thing I saw that the page.php file from the template folder is used for displaying all Forums/Topics/Replies? and other stuff that is used by the plugin. I imagined that all this content is generated with $wp_query somehow, but as I looked a little in the code I saw that everything works in the other way: replacing with a filter all the content of a post with this function... so now the_content function can not be used for other purposes and is not independent anymore. Why everything works in this way?
I want to apply the_content filters to a text in a widget and what I get is a list of forums or topics but not the text I submitted in the widget...
Change History (4)
comment:1
follow-up:
↓ 2
johnjamesjacoby — 7 months ago
- Resolution set to invalid
- Status changed from new to closed
Replying to johnjamesjacoby :
Things that can be are generated by $wp_query, are. Great care has been taken to make sure everything works the normal way when it can, and WP_Query is used otherwise. This is not a bug, or a defect; it's by design.
But how to use this function apply_filters("the_content") in the same page then?
Instead of getting what I want I will get a list of topics, or forums...
comment:3
follow-up:
↓ 4
johnjamesjacoby — 7 months ago
- Milestone Awaiting Review deleted
Why do you want to use the 'the_content' filter on something that isn't post or page content?
Things that can be are generated by $wp_query, are. Great care has been taken to make sure everything works the normal way when it can, and WP_Query is used otherwise. This is not a bug, or a defect; it's by design.