How to stop get_queried_object_id() returning child term id’s also
The issue I have is that if I use get_queried_object_id, the archive page for the parent term shows the shortcode for the parent term and the first child term. That’s not what’s happening. get_queried_object_id() will only return the ID of the current category. When you add [0] you’re just breaking the condition check meaning that … Read more