jQuery AJAX WordPress query and Loop
Firstly we should create and store the following into it's own .js file ready for use. // ajaxLoop.js jQuery(function($){ var page = 1; var loading = true; var $window = $(window); var $content = $("portfolio"); var load_posts = function(){ // var sort = $(".sorter select").val(); $.ajax({ ... more