WordPress: Add AJAX functionality to comment form with WP-Ajaxify-Comments plugin

When submitting the comment form, WordPress by default reloads the complete page. In case of an error (e.g. an invalid e-mail address or an empty comment field) the error message is shown on top of a new (blank) screen and the user has to use the browser’s back button to correct the comment form and post the comment again which is not very user-friendly.

Recently, I’ve released my first WordPress plugin WP-Ajaxify-Comments. This plugin hooks into any WordPress theme and adds AJAX functionality to the comment form: When the comment form is submitted, the plugin sends the data to the WordPress backend without reloading the entire page. In case of an error, the plugin shows a popup overlay containing the error message. If the comment was posted successfully, the plugin adds the (new) comment to the list of existing comments without leaving the page and shows an info overlay popup.

Since the plugin hooks (on client-side) into the theme to intercept the submit of the comment form and to add new comments without reloading the page, the plugin needs to access the DOM nodes using (jQuery) selectors. The plugin comes with default values for these selectors that were successfully tested with WordPress’ default themes “Twenty Ten” or “Twenty Eleven”. If the plugin does not work out of the box with your theme, custom selectors could be defined in the WordPress admin frontend (see FAQ).

Summarized the WP-Ajaxify-Comments plugin hooks into your theme and improves the usability of the comment form by validating and adding comments without the need of complete page reloads.

You find the most recent version of the plugin in the official WordPress plugin repository (Link). Please keep in mind, the plugin is still in a prototype state, so there could be some bugs. Please do not hesitate to contact me or to use the support forum, if you have problems to get the plugin working.


  1. vasya

    :) how install this plugin?

  2. Jan Jonas

    The plugin is listed here in the official WordPress Plugins Directory. Click here to get more details about how to install a plugin.

  3. WiseHou


  4. barry

    thank you for ur plugin

  5. DAn


  6. Girish

    I like this plugin!

  7. stas

    как установить этот плагин?

  8. Diego

    Yeah it works fine

  9. VN

    Good work!

  10. shoshorov


  11. Daniel Sirakoff

    nice post

  12. Ron

    I like this post

  13. Sam

    very cool

  14. lito

    nice plugin!!!

  15. deneme


  16. phil

    Love the plugin so far! We need more developers like this that’s in it for the love of development not profit!!!

  17. jean

    Nice plugin. Thank you

  18. vince

    thanks for this plugin

  19. Alfiana E. Sibuea


  20. Brooklyn Events

    Great module! I’m going to use it for the blog I’m building for my new site Best of Brooklyn.

  21. Hasan ad Allah

    Very Nice …thank you :)

  22. bcbxbxbxc

    great great great plugun

  23. ali

    ,,,,great great great plugun

  24. arunlikhati

    This is pretty cool.

  25. Magno

    pretty cool plugin

  26. Steph

    This is pretty cool.

  27. Ashley

    Thank you!

  28. Cosmo

    Thanks, I’m going to give this a try on my blog.

  29. test

    thanks for the great work

  30. Joan Swan

    Cool plugin. Thank you!


    THX a lot

  32. Test

    Cool plugin. Thank you

  33. shraqs

    Thank you so much.

  34. Mithun

    awesome !!! was looking for this plugin for a while !! :) :D

  35. Anne

    Great plugin! Thanks!

  36. Paul Thomson

    It’s looking good. Keep up the good work, stay safe!
    Paul :-)

  37. test


  38. Lorenz

    Thank you for the great Plugin!

  39. Rose

    Thanks been looking for something like this for a while now!

  40. test


  41. Romulo Bastos

    Great job! It’s a nice plugin. Thank you!

  42. Brian


  43. Tina

    Nice plugin! great job!!

  44. Joe

    Will probably use this for some of my clients. Thanks!

  45. Manny

    Awesome plugin!

  46. iKirby

    nice plugin

  47. stopusifyoucan

    Thanku so much. For a guy like me who everything about wordpress but dont know how to change comment.php this plugin helped me. keep it up

  48. Rafael

    Amazing! Love the plugin, really useful!

  49. Jide

    Great plugin

Leave a comment

Your email address will not be published. Required fields are marked *