'; $('.instafeed').append(content) } } else { console.log(data); } } }); } //loadmore post var ppp = 3; // Post per page var pageNumber = 1; function blog_load_posts(){ pageNumber++; var str = '&pageNumber=' + pageNumber + '&ppp=' + ppp + '&action=morepostajax'; var button = $("#moreposts"); $.ajax({ type: "POST", dataType: "html", url: ajax_posts.ajaxurl, data: str, beforeSend : function ( xhr ) { button.html('Loading '); // change the button text, }, success: function(data){ button.text('Load More'); // insert new posts var $data = $(data); if($data.length){ $("#ajax-posts").append($data); $("#moreposts").attr("disabled",false); } else{ $("#moreposts").attr("disabled",true); button.text( 'No More Post' ); // insert new posts button.attr("disabled",true); } }, error : function(jqXHR, textStatus, errorThrown) { $loader.html(jqXHR + " :: " + textStatus + " :: " + errorThrown); } }); return false; } $("#moreposts").on("click",function(){ // When btn is pressed. $("#moreposts").attr("disabled",true); // Disable the button, temp. blog_load_posts(); }); });
The Vaper Paper
Out Collection Of
Cloudy Columns

Latest Post

LET’S SESH ON SOCIAL

@VAPE_PARTS_MART