Get current category details the user is currently on in category.php

You are using the wrong function. Try:

$thiscat = $wp_query->get_queried_object();
var_dump($thiscat);

I don’t know exactly what you want to do with this information but you will get an object (stdClass) with ~15 items in it. You should be able to find what you need.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)