Apache rewrite rules and wordpress problem

After weeks of fiddling around and trying all sorts of tricks, I finally figured it out. There we’re two things I was doing wrong, I wanted wordpress to be able to access get last two value’s in between slashes as GET parameters when an url like this /examentraining/vak/VAKNAME/LEVELNAME/ is submitted to WordPress. p=1316&vakname=VAKNAME&level=LEVELNAME => /examentraining/vak/VAKNAME/LEVELNAME/ … Read more

Ajax, jQuery and WordPress

Wrap your javascript code with document.ready, and if it works I would suggest going back to putting this in an external file jQuery(document).ready(function(){ jQuery(‘#ajax_form’).on(‘submit’, function(e) { e.preventDefault(); console.log(‘Here’); var form = jQuery(‘#ajax_form’); var data = form.serialize(); data.action = ‘add_word_to_form’ jQuery.post(‘/wp-admin/admin-ajax.php’, data, function(response) { alert(data); }); //return false; }); });