Viewing 1 replies (of 1 total)
  • Plugin Author Evan Herman

    (@eherman24)

    Hi,

    You will need to write some custom code to achieve this. I would recommend reading through the following article:

    https://www.wpbeginner.com/wp-tutorials/how-add-signature-ads-post-content-wordpress/

    If you take a look at the code you’ll notice that they are adding

    <p>Load Your Content Here</p><img src=”‘. get_template_directory() .’/images/signature.png” alt=”Your Name” />’

    after the content. Simply replace that with a the shortcode for your form. You’ll still need to style things as I’m sure it won’t look perfect on initial load. For example:

    function custom_content_after_post($content){
    if (is_single()) {
    	$content .= do_shortcode( '[yks-mailchimp-list id="1234567891"]' );
    }
    	return $content;
    }
    
    add_filter( "the_content", "custom_content_after_post" );

    In the upcoming release the shortcode will be changing in structure, so when that update is released you’ll need to go ahead and update your shortcodes.

    Let us know if that works!

    Evan

Viewing 1 replies (of 1 total)
  • The topic ‘How do I add a form to all posts?’ is closed to new replies.