How to add a loop on two different pages
-
Okay, so I’d like to have two loops on my site. The first loop is on a blog page and the second loop is on the home page. The first loop is set to a blank Page called “Blog”. This is where my regular index of posts is. To do this I had to go to Reading settings and set the front page as a static page and point the Posts Page to my blank “Blog” page. So far so good, the posts show up on the Blog page. Now I took that loop and copy pasted it to the Home Page (which is what Front Page is directed to), taking out the post snippet so it just shows the title and date. The only problem is that since the Posts Page is being directed at the Blog Page, the posts only show up there and refuse to show up on the Home Page as well.
I’m using the have_posts() conditional for both loops.
Any suggestions?
- The topic ‘How to add a loop on two different pages’ is closed to new replies.