• Resolved cobalt-thunder

    (@cobalt-thunder)


    Hello, Will ~

    Just installed your Insert PHP plugin. Works swellerifically with the date code, et cetera. However, when I embed this code in my post:

    [insert_php] query_posts(‘cat=2&showposts=’.get_option(‘posts_per_page’)); ?>
    <?php while ( have_posts() ) : the_post(); ?>
    <?php get_template_part( ‘content’, ‘text’ ); ?>
    <?php endwhile; wp_reset_query();
    [/insert_php]

    … it functions properly, but my Contact Form 7 code breaks (just shows up as the raw code on the page: [contact-form-7 id=”19″ title=”Email List Subscriber”]).

    Have you seen this issue before? Any solution? Enlightenment appreciated when you have a moment! . . . .

    ~ s k n a h T

    e k i M ~
    Mike Rocha
    [email protected]

    https://www.ads-software.com/plugins/insert-php/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WillBontrager

    (@willbontrager)

    Hi Mike,

    If the contact form is inserted into your page with a shortcode, the software that replaces the shortcode with a form probably doesn’t run when the post is pulled in with the code you’re using. I don’t know enough about the WordPress to suggest a way to replace the shortcode with the form.

    Otherwise, if not a shortcode, perhaps the contact form has a vertical bar character. Read about code elements that won’t work here:

    https://www.willmaster.com/software/WPplugins/insert-php-wordpress-plugin-instructions.php#nonworkingelements

    The rest of the page may also provide clues.

    Will

    Thread Starter cobalt-thunder

    (@cobalt-thunder)

    Howdy, Will ~

    Thanks very much for the expeditious response! I was actually able to extract the raw code for the Contact Form and swapped it in to replace the shortcode. All is now working.

    ~ !niaga sknahT

    e k i M ~

    Plugin Author WillBontrager

    (@willbontrager)

    Good to hear you got it working like you want, Mike.

    Have a great rest of the week.

    Will

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Contact Form not working’ is closed to new replies.