home.php to load certain category?
-
Hello,
I have two types of post categories, the user should be able to choose for viewing:
1. News
2. MusicInstead of creating two different loops, I’d like to use wordpress’ category feature and my home-page should load with all “News”-posts by default and the class .current-cat active for the “News”-button in the category menu. Is there a way of telling the loop to load the page, as if the user already clicked the “News”-category link?
I set up a home.php and tried to load the category.php with get_template_part, but I can’t figure out, how to load a certain category.
Thanks!
The topic ‘home.php to load certain category?’ is closed to new replies.