do you mean after the main forum page, or each forum page, or each topic page ?
and then same shortcode on every topic page, and above or below the reply form ?
Yeah, on every topic page and above the reply form
sorry, this one slipped by
add this code, changing ‘shortcode here’ to the actual shortcode you wish to execeute
add_action( 'bbp_theme_before_reply_form' , 'rew_add_shortcode');
function rew_add_shortcode () {
echo do_shortcode( '[shortcode here]' );
}
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
Code Snippets
Thanks Robin, it works! You’re amazing!
I want put a html code under the reply form like the area shown in the picture. Could you give me such a code?
add_action( 'bbp_template_after_single_topic' , 'rew_add_shortcode2');
function rew_add_shortcode2 () {
echo do_shortcode( '[shortcode here]' );
}
Great job! Thank you Robin.
Could you give me another code to put shortcode in this area under lables:
add_action( 'bbp_template_before_topics_loop' , 'rew_add_shortcode3');
function rew_add_shortcode3 () {
echo do_shortcode( '[shortcode here]' );
}
Far out! Thank you dear Robin.