{"id":13715394,"date":"2020-11-27T07:15:50","date_gmt":"2020-11-27T07:15:50","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/display-current-category-name-in-sidebar-widget\/"},"modified":"2020-11-27T07:15:50","modified_gmt":"2020-11-27T07:15:50","slug":"display-current-category-name-in-sidebar-widget","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/display-current-category-name-in-sidebar-widget\/","title":{"rendered":"Display current category name in sidebar widget"},"content":{"rendered":"<p>I need to add some text to the sidebar of all product category pages that includes a dynamic variable that displays current category name in text. What would be the best way to go about this?<\/p>\n<p>As an added bonus it would be ideal to also be able to use a parent category variable as well but lower priority. <\/p>\n<p>Thanks in advance for any and all help. <\/p>\n","protected":false},"template":"","class_list":["post-13715394","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13715394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13715394\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13715394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}