This has had me baffled for days so any help would be appreciated. I cannot get the function
get_terms to return anything. I've tried the following code in the index.php, single.php and page.php, inside and outside the loop, of the default Twenty Thirty theme as well as my custom theme and no category terms are returned. I've created 10 test category terms and applied them to different test posts and still nothing. It's not working on the live site or the local development site. I've also tried flushing the rewrite rules by going to the Permalink Settings page and re-saving, just to see if that helped.
Researching and finding any similar problem online has the same answer: add the
hide empty part. So I did, to no avail.
Any ideas why this function would not be working?
<?php get_terms("category") ?>
<?php get_terms("category", array("hide_empty" => 0)) ?>