• Resolved pbarreau

    (@pbarreau)


    Hi everyone,

    I have developed my own WordPress theme and would like to insert the contact form within a page.

    When I insert the code [contact-form-7 id=”??” title=”??”] and display the page, the form does not appear and instead the code is displayed as text.

    When I switch to themes like TwentyEleven, the form displays.

    I have already verified that wp_footer() and wp_head() are included within those pages.

    I was wondering what were the others requirements for plugins such as ContactForm to work? Do the code need to be inserted within specific div ids or classes ?

    Thanks in advance!

    http://wordpress.org/extend/plugins/contact-form-7/

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

    (@takayukister)

    For example, look at content-page.php in twentyeleven. It uses <?php the_content(); ?> where the page content is displayed. Is yours doing so?

    Thread Starter pbarreau

    (@pbarreau)

    Yes it did.

    I actually just found the solution by directly inserting the short code within the PHP page using

    echo do_shortcode(‘[contact-form-7 id=”??” title=”??”]’);

    Thanks for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Code insert is not compatible with my theme’ is closed to new replies.