WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
when it just doesn't work (7 posts)

  1. timothyICAD
    Member
    Posted 3 years ago #

    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.

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 3 years ago #

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

  3. timothyICAD
    Member
    Posted 3 years ago #

    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.

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  5. timothyICAD
    Member
    Posted 3 years ago #

    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?

  6. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  7. timothyICAD
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic