Adding commas between post titles on an archive page?
If you ultimately want the last post, regardless of pages, then you need to use found_posts. This could change depending on how you sort but I didn’t see any modifications to that in your code. So to just modify the content of your code above you would do this: <?php if ( have_posts() ) { … Read more