• Resolved ReveDreams

    (@revedreams)


    Thank you for this plugin – it has been useful for a wide variety of situations. I’ve run into some odd behavior I’m trying to untangle, which could be FPW, WP-SpamShield Anti-Spam, the way WordPress uses shortcodes, or some combination of the three. When I submit the contact form from WP-SpamShield, the thank you/successful sending text appears not only in the main column of the page, but also in the Flexible Posts Widget in the sidebar (currently set to show one post). The contact form is placed in the page via a shortcode. Here’s a test site with just those two plugins activated, and a screencap of the result:
    http://rweber.net/test_site/wordpress/?page_id=2

    I’ve been in touch with the WP-SpamShield developer, who says the form only outputs content in the loop per WordPress documentation, and therefore doesn’t see a way changes on that end could help. Do you have any ideas? Thanks.

    https://wordpress.org/plugins/flexible-posts-widget/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author DaveE

    (@dpe415)

    Hi ReveDreams,

    This is a very common scenario when a plugin or other code doesn’t properly reset the post data after doing something custom to the content of a post or page. I would be willing to bet that the plugin in question doesn’t do any kind of limiting to what the_content they are filtering when the add the output from the form submission.

    Asking the SpamShield developer to add a check for is_main_query() would easily resolve this.

    FWIW, this issue would affect any post content that is generated outside of the main loop.

    Plugin Author DaveE

    (@dpe415)

    Since I haven’t heard back in quite a while I’m closing this thread as resolved. You are welcome to post again if you still need support.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘content overwritten by contact form’ is closed to new replies.