Bram
(@bramos_ditaljanos)
Thanks for your reply. No clue why it wasn’t working yesterday, but print_r(get_the_category()); now indeed displays the array I was looking for.
Bram
(@bramos_ditaljanos)
Hi Curtis,
I’m still struggling to retrieve the categories of the post. For tags, the_tags() works perfectly and the_category() also displays the categories of a particular page as hyperlinks, but I’d like to have these in an array. Functions as wp_get_object_terms() or wp_get_post_categories() do not work. Any idea on how to solve this?
Many thanks,
Bram
Thread Starter
Bram
(@bramos_ditaljanos)
Thanks for you reply! I still couldn’t fix my problem, but I’ve found another possible solution, which involves a subselect in the plugin-query.