WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use a function from my functions.php to process a front end post form. I store the errors in the variable $output but need a way to show it on the post form after submit. How can I do that?

share|improve this question
Using ajax? This isn't a very good question. – Wyck Sep 21 '12 at 16:00
I was just going to show them on submit. If the $outout isn't set to null then the form won't process and I want to show a list of the errors stored in $output. – Pollux Khafra Sep 21 '12 at 16:45
jQuery AJAX handles errors as well. – kaiser Sep 21 '12 at 16:58
correct but I have certain validation that I'm not looking to leave open to manipulation from the front end. – Pollux Khafra Sep 21 '12 at 17:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.