help with custom loop showing 1 post from 1 cat
-
Hi there
So I’m working on a template that will mix posts with page content. The template has a loop that queries posts from a certain category and then there is another loop to display below that the content for the page from the database. I pretty much have this down but I’m having a problem with the post part. It shows 1 post from the category but when I click the post nav buttons to go to the next post it just keeps showing the same one. Not sure if this is because I need to reset my query or not even limit the number of posts within the query. I just want the latest post from the category shown and then to be able to step through the rest with the nav buttons.
Here is the the site – https://josephinesdream.com/?page_id=34
and the template: https://wordpress.pastebin.com/V5M5P8NU
- The topic ‘help with custom loop showing 1 post from 1 cat’ is closed to new replies.