This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function($){ | |
var ajaxurl = load_more_posts_access.ajaxurl; // from localized script | |
var page = 2; //number of next page | |
var loadMore = function(){ | |
if($(window).scrollTop() == $(document).height() - $(window).height()){ // if reached the end of the page | |
var data = { | |
'action':'load_more_posts', // ajax action | |
'paged': page,//page number | |
'security': load_more_posts_access.security,//security | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function($){ | |
var ajaxurl = load_more_posts_access.ajaxurl; // from localized script | |
var page = 2; //number of next page | |
var loadMore = function(){ | |
if($(window).scrollTop() == $(document).height() - $(window).height()){ // if reached the end of the page | |
var data = { | |
'action':'load_more_posts', // ajax action | |
'paged': page,//page number | |
'security': load_more_posts_access.security,//security | |
'request_uri': window.location.pathname |
OlderNewer