Open Si-HaMaDa opened 6 years ago
I have the same issue, is there any solution?
I have the same issue, is there any solution?
I've fixed it... copy and paste the code in your files and try also you can read to understand what I did
I just uploaded my theme on the hosting server, it is working fine there. It means, it is creating problem with localhost.
I just uploaded my theme on the hosting server, it is working fine there. It means, it is creating problem with localhost.
the problem isn't with local host or server the problem will appear with sub-directory even on you server try to make a wordpress installation on sub-directory on your server and see
when the site is in a subdirectory the URL is not working probably in the index but works fine in archive page cause we preset the URL with "data-archive" and passing it... for example is the site URL is http://localhost/wordpress in the homepage when scrolling to first div of "page-limit" the URL becomes http://localhost/ or when load more becomes http://localhost/page/2 So here's my solution I hope it's good in index `<?php if( is_paged() ): ?>
in sunset.js `$(document).on('click','.sunset-load-more:not(.loading)', function(){
in ajax.php `function sunset_load_more() { $paged = $_POST['page'] + 1; $prev = $_POST['prev']; $archive = $_POST['archive'];
}
and as improvment in archive.php
<?php if( is_paged() ): ?>what I did is passing the full URL like you did in archive.php I passed the full URL even in index... I hope you see it and tell if there's something wrong in my code