Sen bu kodunda döngüye sokmuşsun sayfa kadar buton çıksın şeklinde. Bu kodu sayfalandırmada kullanabilirsin tabi ki ama daha fazla yükle butonuna Sayfa numaranı yazdırman gerek. Yok Tek bir Daha fazla yükle butonu ile devamlı yüklesin istiyorsan şağıdaki mantığı kullanabilirsin butona son postun id sini $post_id ile yazdırıp ajax ile başka bir sayfadan yükletebilirsin. ajax.php dosyasında da gelen id den 5 id öncesini gibi şeklinde yapabilirsin.



echo '
Daha Fazla Göster
';
?>



<script>
$(document).ready(function(){
$(document).on('click','.show_more',function(){
var ID = $(this).attr('id');
$('.show_more').hide();

$('.loding').show();
$('.loding').append('
');
var timerId = 0,
timerId = setInterval(function(){

$.ajax({
type:'POST',
url:'ajax.php',
data:'id='+ID,
cache: false,
beforeSend: function() {
//$('.loding').show();
//$('.loding').append('');
},
success:function(html){
$('#show_more_main'+ID).remove();
$('.itiraflar').append(html);
clearInterval(timerId);
},
complete: function() { $('.loding').hide(); $('.show_more').show(); }
});

}, 150)
});
});
</script>