Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [Solved] 2 loops, 2 categories – can I do this? Re: [Solved] 2 loops, 2 categories – can I do this?

#64930
bazzablue
Participant

Guys,

Thanks for the help so far. I have made some progress on a (very badly designed) http://www.bazzasblog.co.uk.

As you can see the home page displays two loops – one for Blog and the other for Portfolio. I have managed to edit the code on the index.php so it only shows up the bolg category posts. I did this by entering <?php query_posts("category_name=blog"); ?>.

What I know need to do is create another index.php page with <?php query_posts("category_name=portfolio"); ?> inserted. Obviously this isn’t going to be that simple as I can’t create another page.

What do I do? Can I create index2.php? If so, how do I point the Portfolio entries to that page? And how do I get these entries to show up on my Portfolio ‘page’?

Thanks again for your help. And Chris thanks for all your tutorials and screencasts – they have taught me so much.