0

Can I get WP_Term object properties for all custom post type and custom taxonomy?

Here is the code that I need to replace

$categories = get_categories(array(
                        'include' => $filter_ids,
                        'exclude' => '1',
                        'number' => 100 
                    ));
  • Have you tried get_terms()? – Nilambar Jun 7 at 6:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.