I have a permalink structure that looks like this,
%category%/%postname%
I have a category.php template coded up and and trying to pull of the post of a certain category, so for example my URL may look like this,
/category/category1
I want all posts that are in category1 to be return however, when using the following code I get null returned,
get_query_var('cat')
I assume that this code is looking for URL that looks like this,
?cat=category1
So how do I make it work with permalinks?