Contact form 7 in custom post

3

I have contact forms made with the contact form 7 plugin inside my site, but the contact forms only work on pages, inside posts do not work.

On the contacts page it sends correctly and shows the sent message:

Thesingleoftheportfoliosendstheemail,buttheloaderisinfinitelyrunninganddoesnotdisplaysentmessage:

Theerrorthatoccurs:

    
asked by anonymous 30.03.2016 / 00:34

2 answers

2

A official FAQ has an entry for this problem . The most frequent cause is some plugin or theme causing incompatibilities, for example when the plugin or theme adds different versions of libraries used by the plugin.

This entry in the knowledgebase of the plugin reports exactly the problem that you is taking and suggest an article with tips on how to find the real cause of the problem.

Basically the first tip is to change the theme and see if it works. If it still does not work, disable all plugins except Contact Form 7. If this resolves the problem, enable it again one by one until you find out what the cause is.

Just to give you an idea, this support topic reports the experience of a user with the same problem. In the end, he discovered that the WP Facebook Open Graph protocol plugin was the cause.

The problem can occur because you may have different widgets in single posts or because some plugin or theme makes a distinction using is_singular() or some other internal Wordpress function that checks the type of page being displayed .

Solving the problem definitely is another story. Once you identify which plugin or theme is the culprit, you would have to identify exactly the root of the problem.

The most common case, as I mentioned, is to have different versions of the same library as jQuery. You can also look at the HTML source and look for this kind of common problem.

Once you have identified the root of the problem, you have to see if there is an easy solution. In the case of duplicate libraries, the first step is to remove one and see if everything still works. If it does not work, some of the plugins will have to be adjusted to work with the different version.

Also check that all plugins are properly updated. Older versions may be incompatible with newer libraries.

    
30.03.2016 / 09:56
0

Thiago, to debug this you will have to disable all other plugins. So, if it works, you will activate it one by one until you find out which plugin is causing conflict. If even disabling the plugins continue with the problem, then Contact Form 7 is conflicting with some JavaScript function of your theme. If it can not resolve then switch to another form plugin. Ninja Forms and Caldera are good and free tb. Good luck.

    
30.03.2016 / 03:28