Created
September 14, 2013 15:33
-
-
Save ZellSnippets/6562964 to your computer and use it in GitHub Desktop.
PHP: Genesis add stuff after post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add signup incentives after every post | |
add_action( 'genesis_before_comments', 'zell_post_subscribe_box' ); | |
function zell_post_subscribe_box() { | |
if ( is_single() ) { | |
echo '<div class="feature-box">'; | |
echo do_shortcode( '[contact-form-7 id="341" title="Mail Chimp Signup"]' ); | |
// echo do_shortcode( '[contact-form-7 id="1175" title="Mail Chimp Signup Form WK DRAFT"]' ); | |
echo '</div><!-- end .feature-box -->'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment