php ajax problem – weird 301 responses!

I’m guessing the page your calling executes an wp_redirect with a 301 response somewhere. Dont really have an answer for you but maybe you can try the following. Ajax does not know what type of page your calling from and there might be some strange query_vars loaded that trigger a redirect. Your using a permalink … Read more

AJAX Contact Form Issue

are you logged-in with all browsers? since add_action(‘wp_ajax_contact_form’, ‘ajax_contact’); only works for logged in users, so to fix it you need to change it: add_action(‘wp_ajax_nopriv_contact_form’, ‘ajax_contact’); if you want your function to work for visitors as well as users.

Tags in WordPress 3.2

I believe this to be an issue with a jQuery conflict. Since version 3.2 of WP jQuery has been updates. There might be other plugins you are using that doesn’t play nice with the new jQuery version which is then triggering a JS error, thus stopping the tag/AJAX functionality from working. Try disabling all your … Read more

WP_Query on custom taxonomy works fine but fails if run through wp_ajax_

I don’t see your call to the ajaxurl in your code. Are you actually getting an ajax response? Try this javascript: jQuery(document).ready( function($) { $(“a.getviews”).click( function() { var td = $(this).parent(); /* only fetch results once */ $(this).unbind(‘click’).bind(‘click’, function(){return false;}); // replace button with loader $(td).html(‘<span class=”loader”></span>’); $.ajax({ type: ‘POST’, url: ajaxurl, data: { action: … Read more