[Resolved] get_categories in functions.php (WP 2.8)
just experienced a mayor problem with get_categories() in my themes under WordPress 2.8. The function seems to work right in any template file. But if you put
<pre><?php print_r(get_categories()); ?></pre>
in the functions.php it will return
[errors] => Array
[invalid_taxonomy] => Array
 => Invalid Taxonomy
[error_data] => Array
In the theme options page I use a select input field to let the user pick categories. This select field is empty now due to the error.
Anybody has the same issue and an idea how to solve this? Thanks in advance!
- The topic ‘[Resolved] get_categories in functions.php (WP 2.8)’ is closed to new replies.