Thread Starter
nncrns
(@nncrns)
Awesome! Thanks so much for your help! Your corrections didn’t quite fix the problem, but it made me realise my mistake and now it works 🙂
I didn’t know that the proper way to adress the variable was this:
query_posts('cat='.$category);
I thought by using get_query_var I could get the category IDs, store them in $category and query the posts with that ID to show up. Now I found out that the categories are automatically stored inside $cat and all I had to do was replace the code block including get_query_var with this:
<?php query_posts('cat='.$cat);?>
🙂