PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

MailChimp Form on Every Blog Post

  1. Hi, I apologize if this seems way too basic to be real, but I cannot seem to find the right search phrase to find the script or code that I need.

    Basically, I just want my MailChimp subscription form to post at the bottom of every blog post I have. I would imagine I would need to add something to single.php. What would that be though?

    Thanks in advance. Sorry for the annoyance.

    Posted 12 years ago on Monday February 27, 2012 | Permalink
  2. Ah, I knew I would likely find it after embarrassing myself. This is it, right:

    <?php gravity_form($id, $display_title=true, $display_description=true, $display_inactive=false, $field_values=null, $ajax=false, $tabindex); ?>

    Found here: http://www.gravityhelp.com/documentation/page/Embedding_A_Form

    Posted 12 years ago on Monday February 27, 2012 | Permalink
  3. takiyahnoble
    Member

    HubertGAM,
    Don't feel foolish at all, I was perusing this support forum to get the answer to your exact question!!!
    So, thank you for adding it! This is exactly what I needed... however, it doesn't seem to play nice with the conditional logic. But then again, it might have something to do with my theme.

    Posted 12 years ago on Wednesday June 13, 2012 | Permalink
  4. takiyahnoble, when you add a form to a page template like this, you need to ensure the scripts and CSS are included. It happens automatically when using the shortcode. When you add the PHP to your template file, you need to make sure this happens on your own. See here:

    http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts

    Posted 12 years ago on Monday June 18, 2012 | Permalink