Update user meta on custom wordpress form and redirect

To redirect to some other page, you can use wp_safe_redirect any time before you echo content to the browser, including HTTP headers, which, I think, answers your question. But I would just echo a message on the same page if it were me. Not really on topic, but there are a number of things about … Read more

Inquiry form like on URL [closed]

You seem to be talking about multi step form. Multi step form mean a large form which contains different sections are divided into multiple step to finish the form easily and clearly. By this you can set validation and take them to where ever you want. Here’s a tutorial to guide in the process: Multi … Read more

How to use HubSpot Forms API in WordPress pages?

The easiest way is to use HubSpot’s PHP wrappers to get the data you need: https://github.com/HubSpot/haPiHP Basically the wrappers are just JSON data fetchers, so you can also just take out the code you need from the wrapper source, if you need to. Create new HubSpot_Forms instance and use e.g. the get_forms() to get the … Read more

Simple form validation for custom post type in front end. Not working

Your validation is not working because the variables with the empty array return true with isset; Go to http://writecodeonline.com/php/ and try this code, and you’ll understand: $test = “”; if ( isset($test) ){ echo “true”; } The right function for it, instead of isset is empty. Try it out: $test = “”; if ( empty($test) … Read more

Form within thickbox

The issue you are running into is partially an HTML issue. Forms cannot be nested. You are likely putting this inside of another form (as a great bulk of the backend is already forms). WordPress provides good handling for receiving submitted data to extend core functionality. I suggest that you look into this and figure … Read more