Loop Kodu:
if(get_post_meta($post->ID, 'bshop_tl_indirim', true)) {
echo '';
echo get_post_meta($post->ID, 'bshop_tl', true);
echo '';
echo '';
echo get_post_meta($post->ID, 'bshop_tl_indirim', true);
echo ''; }else {?> ID, 'bshop_tl', true); ?>
Header daki kodum
<script>
jQuery(document).ready(function($) {
var count = 2;
var total = max_num_pages; ?>;
$(window).scroll(function(){
if ($(window).scrollTop() == $(document).height() - $(window).height()){
if (count > total){
return false;
}else{
loadArticle(count);
}
count++;
}
});
function loadArticle(pageNumber){
$('a#PozFantPagMoreContent').show('fast');
$.ajax({
url: "/wp-admin/admin-ajax.php",
type:'POST',
data: "action=infinite_scroll&page_no="+ pageNumber + '&loop_file=loop',
success: function(html){
$('a#PozFantPagMoreContent').hide('1000');
$("#icerik").append(html);
}
});
return false;
}
});
</script>
Ek Olarak: İnfinitive Scroll eklentisi ile Sorun çözüldü