WordPress theme ajax have_posts()
My goal here is to load the blogroll into my theme via ajax. But all that I can get as response is 0 (if I omit the die() line, else I get a blank response). Here is my code: js ajax: $.ajax({ url:”http://domain.com/wp-admin/admin-ajax.php”, type:’POST’, data:’action=load_men_blog’, //dataType:’html’, //cache: false, success: function(html){ $(“#b_contentwrapper”).empty(); $(“#b_contentwrapper”).append(html); } }); PHP … Read more