• Resolved brit77

    (@brit77)


    Hi there, your plugin looks to be just the thing I need for password protecting a contact form I’ve customized as an RSVP form on a wedding site.

    The content within the content_protector shortcode is a Contact Form 7 shortcode for rendering the form.

    It seems to work fine until I set it to use Ajax. With Ajax, it loads the shortcode itself rather than the form. Is there a fix or any way around this, or is this just a limitation in the way Ajax works?

    Many thank in advance for any help you can offer.

    -Sarah

    http://wordpress.org/plugins/content-protector/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, Sarah.

    I just saw your post and I am looking into what’s going on. I will post back here when I find a solution.

    -K

    Hi, Sarah.

    Try upgrading to 1.2.2 and let me know if that works for you.

    Support for shortcodes in Contact Form 7 is only loaded when is_admin() returns false. Since is_admin() returns true for AJAX requests, support never gets loaded, which is why you were seeing the shortcode instead of the form.

    -K

    Thread Starter brit77

    (@brit77)

    Thank you, K! Yes, the update fixed it!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with ajax and shortcode content’ is closed to new replies.