Support » Plugin: Sweet Captcha » multiple instances

  • Resolved jdsandbox


    Would be *extra sweet* if I could use multiple captchas on a single page. I’ve got a single page with multiple (tabbed) forms for registration and password reset. I would like to have separate sweet captchas for each of these tabs, but it doesn’t seem to work. The second one doesn’t allow me to drop the item on the target image. Here’s the codez I’m using to generate the captchas:

    function my_get_captcha_html(){
        global $sweetcaptcha_instance;
        $result = $sweetcaptcha_instance->get_html();
        if (isset($_POST['errors'])){
            $msg = $_POST['errors']->get_error_message('sweetcaptcha');
            if($msg != '')
                $result .= '<script type="text/javascript">jQuery("#captchi").addClass("field_error");</script><span class="field_error">'.$msg.'</span>';
        return $result;

    Is this possible? (using sweet captcha v2.4.3.6)

Viewing 1 replies (of 1 total)
  • Plugin Contributor Sweet Captcha


    Hi jdsandbox,

    “extra sweet” we like!!

    Can you please drop us a mail at:

    please provide the following info:
    A. WordPress version you are using.
    B. A live link to your site – that we can examine better the issue.

    We will try our best to solve this issue, [ Ad copy removed ]


Viewing 1 replies (of 1 total)
  • The topic ‘multiple instances’ is closed to new replies.