Hello. I’ve tried to set up a wordpress with the custom headers, based on current category selected. I am using permalinks and get_the_category within the following sample:
$cat = get_the_category();
$cat = $cat;
.Array ( ) …
in every page.
- The topic ‘get_the_category returns empty array’ is closed to new replies.