79260541

Date: 2024-12-07 11:57:59
Score: 2.5
Natty:
Report link

You can pass an array of parameters into get_terms.

get_terms(array(
'taxonomy' => 'listing-categories',
'parent'   => 0
));

parent 0 means top level terms.
https://developer.wordpress.org/reference/functions/get_terms/

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Eloi