Me neither, it didn't work right (sometimes it worked, sometimes not fully).
But forgot to update here my results.
Please ignore this code, if you have it in your functions.php, please remove it.
Just enable the "Enable WordPress Shortcodes in Post Content" option in Dashboard > Forums > Settings > Features Tab.
If your function is a custom function you should use wpForo hooks. Just use one of these filter hook to make some change in forum post contents:
- 'wpforo_content'
- 'wpforo_content_before'
- 'wpforo_content_after'
Â
If that's a plugin, you should apply WordPress 'the_content' hook in wpForo 'wpforo_content' hook. First you should disable the "Enable WordPress Shortcodes in Post Content" option in Dashboard > Forums > Settings > Features Tab, as far as I know 'the_content' hook already does this. Then put this code in your active theme functions.php file:
function apply_the_content_on_wpforo_content( $content, $post ){
return apply_filters( 'the_content', $content );
}
add_filter( 'wpforo_content', 'apply_the_content_on_wpforo_content', 10, 2);
Â
So i would like to say why i need that and maybe someone will find it useful.
I try to auto-interlink some specific words or small phrases (2-3 word) all over my site. That means for example i add one URL and some keywords in AAL plugin (Auto Affiliate Links). Works for me with some 100 urls without a speed problem.
Then every Blog post, Page and now wpForo post will use those. So i'm able to do some serious interlink automatically.
The AAL plugin is not actually for that, it is for affiliate links but internal links work very well also (they are all URLS, so ....)