Support » Plugin: Contact Form 7 » [Plugin: Contact Form 7] when it just doesn't work

  • Where can i find a listing of tags or functions that are necessary in a theme in order for Contact From 7 to work?

    I have multiple themes on the same install WordPress. I copied the tag given in the CF7 setting page to a blank page and saved it. When i look at the page in one theme, i see the from; when i look at it in another, i see the tag.

    wp_head(); and wp_footer(); are both present in the respective documents, so this common problem, which i see in the forums, is probably not the problem here.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    I guess the correct one has the_content() and another doesn’t.

    Actually, they both have the_content(). The broken one is printing out the tag [contact-form 1 “Newsletter”], which is the only content on the page. The working one is replacing that tag with the correct form from the CF7 settings page.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    So what theme are you using? The problem is just the filter of shortcode is not correctly applied on the broken theme. Correct theme can handle it.

    The broken theme is a custom theme. That’s how i got involved fixing it. :>

    What is the proper “filter of shortcode” that should be applied on the theme? Is there a page referencing this?

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    The filter name is ‘the_content’ and the function hooked is ‘do_shortcode’. The the_content() function applies ‘the_content’ filter to the content. Try google them.

    Ah. . . thank you very much. The key was the call to do_shortcode(); There was no real description of that in the documents on creating a theme.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Contact Form 7] when it just doesn't work’ is closed to new replies.