{"id":15597732,"date":"2022-04-27T21:00:48","date_gmt":"2022-04-27T21:00:48","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/sort-posts-by-child-category-name\/"},"modified":"2022-04-27T21:19:25","modified_gmt":"2022-04-27T21:19:25","slug":"sort-posts-by-child-category-name","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/sort-posts-by-child-category-name\/","title":{"rendered":"Sort posts by child category name"},"content":{"rendered":"<p>I have a category &#8220;year&#8221; and child-category names with year numbers 1966, 1972, 1980 etc.<\/p>\n<p>I have a category &#8220;publisher&#8221; and child-categories with publisher names.<\/p>\n<p>Each post is assigned a year child-category and a publisher child-category.<\/p>\n<p>When listing posts with child-category of a specific publisher, <strong>I want to order them according to the name of the child category of category &#8220;year&#8221;<\/strong>.<\/p>\n<p>I looked around and didn&#8217;t find a solution.<\/p>\n<p>Thanks<\/p>\n","protected":false},"template":"","class_list":["post-15597732","topic","type-topic","status-publish","hentry","topic-tag-categories"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15597732","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":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15597732\/revisions"}],"predecessor-version":[{"id":15597759,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15597732\/revisions\/15597759"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15597732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}