get_categories don't work with custom taxonomies

Posted in: Newspaper
Post count: 2

I try now to implement the additional filter for the blocks.
if I try to get a list with cutom taxonomy per get_categories(array(‘taxonomy’ => ‘custom_taxonomy’)) will responce emty array (in file td_util.php).
With ‘post_tag’ or ‘category’ as ‘taxonomy’ works, but not with custom taxonomies.
Have you changed something on the core function or query handling?

  • This topic was modified 9 years by igorpro.
Post count: 22421

Hello,
Well since you are trying to alter our theme blocks which are custom made, it;s safe to say that it is far from the default wordpress functionality. Our module, blocks and theme elements are custom made and will not work with standard wp functions. They are used to some extent, but new custom made functions are also used. You will not be able to edit ad add functionality to our blocks based only on the default wordpress implementation.
You will require substantial coding skills for it. Our blocks were not designed to work with custom taxonomies.
Thank you!

Post count: 2

solved: with WP_Term_Query

Post count: 22421

Nice one!
Good job!

Post count: 4

If you could please tell me how did you solve this issue?

Post count: 22421

You will need coding skills to do it. Here is the class igorpro used for this
https://developer.wordpress.org/reference/classes/wp_term_query/
Thanks.

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.