[Custom Theme] Creating a category.php file
-
Hello,
I’m trying to create a valid category.php for my blog.
Here’s a link to a category: https://www.beginnerblogging.net/category/wordpress-basics/.
Here’s a link to my existing category.php code: https://pastebin.com/GWhTmfZV.
At the moment the page is displaying correctly, except it is listing all posts, rather than only the posts in the given category.
What do I need to change to limit the posts listed to the relevant category? I tried adding ‘category’ => ID but that didn’t do the trick.
Thanks for your help!
Tom
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Custom Theme] Creating a category.php file’ is closed to new replies.