Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: "the_content" filter is removed but NOT restored, on custom WP_Query

@tzeldin88

Participant

Hey JJJ, thanks for helping out again.

Hmm. When I comment out line 633 in bbpress/includes/core/theme-compat.php,
//bbp_remove_all_filters( 'the_content' );
the problem is fixed — the custom WP_Query’s all have the correct paragraph breaks. So it still seems related to me somehow. But of course I don’t want to just keep it commented out. I’m sure it’s there for a reason, and I don’t want to edit core files.

Also, I just added is_main_query() and in_the_loop() to the templates that do my custom WP_Query queries. And even those show is_main_query = TRUE, which seems weird, huh. Though in_the_loop = False, as it should be, so I’m not sure why that wouldn’t prevent the problem.

Any further insight much appreciated!

Skip to toolbar