Info
- 5 posts
- 4 voices
- Started 1 year ago by arpowers
- Latest reply from jcnetsys
- This topic is not resolved
WordPress Hooks In BBPress
-
- Posted 1 year ago #
Hey guys,
Anyone know why WP hooks, such as wp_head(), won't work in a deeply integrated bbPress install?
Andrew // PageLines
-
- Posted 1 year ago #
Hey Andrew,
I'm wondering the same thing. I'm using your EcoPro theme and trying to get a plugin to work which calls wp_footer. This hook isn't working on bbPress pages though.
Did you ever figure this out?
Brent
-
- Posted 1 year ago #
Cause wp_head isn't automatically called by WordPress. It's a template tag function that themes' authors usually put between head elements.
-
- Posted 1 year ago #
Hi zaerl,
Thanks for your reply. The template I'm using, as created by Andrew, does call wp_head(), via get_header(). It also calls wp_footer() via get_footer().
I could also use a substitute hook, like bb_foot, which I saw in the default templates, but this doesn't actually seem to be called anywhere.
Any ideas?
-
- Posted 1 year ago #
When BBpress loads it wipes all actions/filters that were registered during the wordpress load. It does this so that all the feeds and sitemaps and external files (js etc.) don't get put in the bbpress forum.
That is exactly what I want it to do so I am trying to figure out how to stop it from wiping them and will let you know how I get on.
-
You must log in to post.