Hi, I have a site that is very close to being complete. All of the code is working, but I didn’t do the best job of planning. I want to switch the content that appears for index.php with the content that appears when pages.php is called. I only have one Page, so I figured, I’ll just switch the code. When I do switch the code, all of the content on the index appears, oh, about 42 times, and nothing appears on my Page (I only have one) except the static content. I guess my question is how is wordpress treating the php I have on my index.php differently from the code i have on pages.php?
This is tricky for me, I have a whole bunch of custom snippets calling recent posts onto my Page, and calling links to every post on the index. I’ll post a link, but it might not be that helpful, I think i just need to intensively debug my php.
So I changed the code back to the functioning stage. What appears on the landing page, is what i want to appear when the Map link is clicked. And what appears now when the Map link is clicked is what I want to be the index. Thanks.
- The topic ‘switching php code between pages, a tricky situation’ is closed to new replies.