Multiple index pages
-
Current situation: I have my theme that has a index.php file and I am using get_template_part(‘index-parallax’) to get that template file. This is what’s expected.
Now the index-parallax.php page includes my layouts (sections) and creates a parallax looking page (hence the name). Each section though needs to link to it’s own index page. So for example the news section only shows 3 posts but when you click on the heading it should go to lets call it index-services.php and that page will show all the posts like a blog.
Problem: I am unsure how to set this up. What would the link/url for each section header in the parallax page be? And then in index.php what check do I use so it either goes back to parallax or to one of the sections index pages?
- The topic ‘Multiple index pages’ is closed to new replies.