Skip to content
Advertisement

WordPress Display Child Term of the Current Category Page?

Hi I am trying to display the child term of the current post category page. However I can figure out what am missing here. Thanks

JavaScript

Advertisement

Answer

In your code the taxonomy should be “category”, so your arguments for get_terms() should have “taxonomy” => “category”. $current_tax is irrelevant in this code then.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement