I recently changed my site to use a portfolio theme with two portfolio pages. Web Design displaying websites I’ve created and the second is Photography. Displaying the Photos I’ve taken and edited. Each page has a separate page template and currently they are both loading all posts both web and photography. I need to add code in each page template to only load posts in that specific category page. (posts in the photography category only load in the photography page, etc.)
I just don’t know the correct coding to add?
if it helps the category ids are as follows:
Photography = ID 8
Web Design = ID 6
Thanks for your help.
- The topic ‘Seperating Posts in Page templates using Categories’ is closed to new replies.