Hi all, hope someone can help - this should be easy for anyone who knows PHP - unfortunately I dont have a clue!
I have a two level menu with categories and sub categories. I want the sub categories to be displayed when the main category is active.
I adapted the following code from another source except it was set up for pages so I am not sure if it is correct. At present the correct sub categories display but won't disappear when you move to another category.
By the way Category 4 is the category I want to display the sub categories from
$thiscategory = $wp_query->post;