WordPress.org

Ready to get started?Download WordPress

Forums

Constant Contact for WordPress
[resolved] How to Insert Short Code in Single.php? (6 posts)

  1. staticnuts
    Member
    Posted 2 years ago #

    First off, I'm not a coding wiz, but I can copy & paste where needed.

    So my headache is I want to add a Constant Contact form to my single.php page so readers can subscribe easier. Doing that is where I am stuck.

    This doesn't work:

    <!-- #post-## -->
    [constantcontactapi formid="0”]
    <?php comments_template( '', true ); ?>
    <?php endwhile; // end of the loop. ?>
    </div>

    Can a wp coding noob get a little help please?

    http://wordpress.org/extend/plugins/constant-contact-api/

  2. Zack Katz
    Member
    Plugin Author

    Posted 2 years ago #

    You to use the do_action() function. What you'll use is:

    <!-- #post-## -->
    <?php do_action('[constantcontactapi formid="0"]'); ?>
    <?php comments_template( '', true ); ?>
    <?php endwhile; // end of the loop. ?>
    </div>

    Hope that helps.

  3. staticnuts
    Member
    Posted 2 years ago #

    Hey Zack Katz,

    I think that worked, but it seems for some reason WP won't save the CC form I create. Now another problem to figure out. I'll committ on this thread if I a form fix doesn't fix my original problem.

    Thank you again Zack,

  4. staticnuts
    Member
    Posted 2 years ago #

    I believe the plugin saved a form since I created a new form and was told formid="2", but no form appears on the category page. :(

  5. shawduh
    Member
    Posted 2 years ago #

    I have an issue with the CC form designer not showing tabs for the forms I've saved... the solution was to use IE rather than Firefox when I'm going to work in the CC form designer. Not sure if that's your issue, maybe it'll help someone.

  6. Zack Katz
    Member
    Plugin Author

    Posted 2 years ago #

    This should be fixed in Version 2.3.8.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic