Help me solve creating a category.php “problems”
-
Hey!
I’m creating my first wordpress template and it fun.
As I started to build the category.php page that suppose to show only the posts in the category that you browse ,I noticed that it shows all the posts in the site and not only the one that belong to the category you browse in.I tried to modify the LOOP but it didn’t worked out.
This is the begging of the LOOP where I get to the post query<?php $current_category = single_cat_title(“”, false); ?>
<?php query_posts(“category_name=$current_category”); $i = 1; ?>What am I doing wrong?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Help me solve creating a category.php “problems”’ is closed to new replies.