Instead of taking you to a different page (wp-comments-post.php) which does not redirect this script just ads some quick text above your form to let your users know if there was an error or if the comment was posted successfully (if successful it then clears the form).
There are a few plugins that do a simliar thing to this already but unfortunately most of the current AJAX commenting solutions I found in the plugin directory havent been updated in years or just didn’t work, so following on from many “how to AJAX’ify your wordpress comments” blog posts I thought i’d make a simple plugin instead (which means no coding knowledge required).
The script chooses the #commentform div/form as this is default.
Ill update this plugin when needed but I do not offer any warranty or support for it.
- Upload the
silk_ajax_commentsfolder to the
- Activate the plugin through the
Pluginsmenu in WordPress
- Make sure your comment form has the ID #commentform in your theme (this is default)
Q: It’s not working?
A: Make sure the comment form div has the ID #commentform in your theme
Kontributor & Pengembang
“Silk AJAX Comments” adalah perangkat lunak open source. Berikut ini mereka yang sudah berkontribusi pada plugin ini.Kontributor
Terjemahkan “Silk AJAX Comments” dalam bahasa Anda.
Lihat kode, periksa repositori SVN , atau mendaftar ke log pengembangan melalui RSS.
- Everything works, i’ve tested accross a few websites, will update if needed.