I have a site which is developed with PHP and recently I added Wordpress blog(same domain with /blog url) to that.

I would like to implement two extra functions(subscribe/contactus) on that blog which is already existing & handling on PHP site.

I found few plugins like Visual Form Builder to build custom forms and also widgets.

I need to use existing php back-end functions to handle contact-us and subscription functionality in the blog as well. My question is how to change the action url on those custom build forms(in the blog) to post details directly to that existing functions in the PHP site.

Note : i'm very new to wordpress.

  • Do you want to migrate the form to WordPress side completely? If you are keeping non–WP part of site it could be convenient to just leave it working (if it's not broken...), at least endpoint it points to. – Rarst Nov 30 '14 at 15:36

If you choose to use contact form 7 plugin then you can find very detailed instructions here. Basically you need to create a custom filter using wpcf7_form_action_url hook.

Another option would be to create child-theme and create your custom form there, but that IMHO would be a bit of an overkill.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.