Title: shortcode function is supposed to return a string
Last modified: September 3, 2016

---

# shortcode function is supposed to return a string

 *  Plugin Contributor [elementsweb](https://wordpress.org/support/users/elementsweb/)
 * (@elementsweb)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/shortcode-function-is-supposed-to-return-a-string/)
 * currently says this:
    ————————-
 *  function simpleCC_display_form() {
    // test to see if all the settings are correct
   if ($this->ready()) { ?> <div class=”simpleCC_plugin”> <form class=”simpleCC_form”
   id=”simpleCC_form” method=”post”> <label for=”simpleCC_fname”>First Name:<input
   type=”text” id=”simpleCC_fname” name=”simpleCC_fname” /></label> <label for=”
   simpleCC_lname”>Last Name:<input type=”text” id=”simpleCC_lname” name=”simpleCC_lname”/
   ></label> <label for=”simpleCC_email”>Email:<input type=”email” id=”simpleCC_email”
   name=”simpleCC_email” /></label> <button id=”simpleCC_submit” type=”submit” name
   =”simpleCC_submit” value=”simpleCC_submit_successful”>Submit</button> </form>
   </div> <?php } } ——————————– but should say this: ———————————– function simpleCC_display_form(){//
   test to see if all the settings are correct if ($this->ready()) {
 * return ‘<div class=”simpleCC_plugin”>
    <form class=”simpleCC_form” id=”simpleCC_form”
   method=”post”> <label for=”simpleCC_fname”>First Name:<input type=”text” id=”
   simpleCC_fname” name=”simpleCC_fname” /></label> <label for=”simpleCC_lname”>
   Last Name:<input type=”text” id=”simpleCC_lname” name=”simpleCC_lname” /></label
   > <label for=”simpleCC_email”>Email:<input type=”email” id=”simpleCC_email” name
   =”simpleCC_email” /></label> <button id=”simpleCC_submit” type=”submit” name=”
   simpleCC_submit” value=”simpleCC_submit_successful”>Submit</button> </form> </
   div>’; } }

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ashton Paul](https://wordpress.org/support/users/ashtonpaul/)
 * (@ashtonpaul)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/shortcode-function-is-supposed-to-return-a-string/#post-8029234)
 * Thank you for this oversight. Updated the bug. Also, added you as a contributor.
 * Once again thanks.

Viewing 1 replies (of 1 total)

The topic ‘shortcode function is supposed to return a string’ is closed to new replies.

 * ![](https://ps.w.org/simple-constant-contact/assets/icon-256x256.jpg?rev=1391118)
 * [Simple Constant Contact](https://wordpress.org/plugins/simple-constant-contact/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-constant-contact/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-constant-contact/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-constant-contact/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-constant-contact/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-constant-contact/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ashton Paul](https://wordpress.org/support/users/ashtonpaul/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/shortcode-function-is-supposed-to-return-a-string/#post-8029234)