• Good day everyone

    I’ve build a custom comments form which hooks onto the default comment_form() in twenty twelve child theme. Here is my code: http://pastebin.com/RJcGyQ1j inside functions.php

    If i add this code ( which is jquery ) to my functions.php to validate the form on page, it works fine without going to the default error page wordpress uses. http://pastebin.com/r3UFQ1Rd.

    The problem is, I modified the code to include other customizations for the form as in here: http://pastebin.com/GKkacw0r.

    Everything in my comment form works like it should, but now my validation script is not working. If validation fails, it redirects to the default wordpress error page. My custom validation script is not working to validate the submitted info on page.

    Am I using a wrong hook, or is there something I missed in the validation script.

  • The topic ‘Comment form vaildation’ is closed to new replies.