{"id":14138241,"date":"2021-03-05T10:17:16","date_gmt":"2021-03-05T10:17:16","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/linking-back-to-the-direct-parent\/"},"modified":"2021-03-05T10:17:16","modified_gmt":"2021-03-05T10:17:16","slug":"linking-back-to-the-direct-parent","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/linking-back-to-the-direct-parent\/","title":{"rendered":"Linking back to the direct parent"},"content":{"rendered":"<p>Here is the problem:<\/p>\n<p>Using the default WooCommerce product categories widget to only show child categories works great. Obviously though, with this setting, if the user gets to a category that doesn&#8217;t have any children then there are no categories listed. <\/p>\n<p>Ideally, there is a &#8220;back to all [parent_category]&#8221; link in this case (or even simply on all categories that have parents. <\/p>\n<p>What would be the best way to go about this? Any links of anyone doing this? I wasn&#8217;t able to find any myself. <\/p>\n","protected":false},"template":"","class_list":["post-14138241","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14138241","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\/14138241\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14138241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}