There’s A LOT of ways to do that. Here’s just a couple ideas:
1) Use the do_shortcode() function in your single.php template file. It would look something like this:
echo do_shortcode("[give-form id="87"]");
You can read about all our shortcodes here.
2) Add a new sidebar into your single.php template and add the “Give Form” widget into that sidebar. You can read about registering new sidebars in your theme here: https://codex.ww.wp.xz.cn/Function_Reference/register_sidebar
3) You could hook into the_content() like Pippin Williamson’s answer here: http://wordpress.stackexchange.com/questions/56884/how-to-only-hook-on-single-php-after-content
That might look something like this:
function yourprefix_add_to_content( $content ) {
if( is_single() ) {
$content .= do_shortcode('[give_form id="87"]');
}
return $content;
}
add_filter('the_content', 'yourprefix_add_to_content');
Hope that helps! Thanks!
Number 1 works, but number 3 seems to give a 500 error when calling the do_shortcode function, ‘End of script output before headers: index.php’
Hey @nrbrook – try changing the “return” to “echo”