I have a permalink structure that looks like this,
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,
I want all posts that are in category1 to be return however, when using the following code I get null returned,
I assume that this code is looking for URL that looks like this,
So how do I make it work with permalinks?