{"id":6236462,"date":"2015-06-16T13:29:03","date_gmt":"2015-06-16T13:29:03","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/order-by-taxonomy-term\/"},"modified":"2016-08-30T14:30:10","modified_gmt":"2016-08-30T14:30:10","slug":"order-by-taxonomy-term","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/order-by-taxonomy-term\/","title":{"rendered":"Order by taxonomy term"},"content":{"rendered":"<p>I have a series of images that I want to order and display by the year of their creation.<\/p>\n<p>My first intention was to create a custom taxonomy &#8220;Year&#8221;. But if I get the terms of this taxonomy, I would have no control over their order when I want to display them chronologically. This also brought me to this article: http:\/\/ottopress.com\/2011\/when-to-not-use-a-custom-taxonomy\/<\/p>\n<p>So the second option would be to create a custom field &#8220;Year&#8221; and use the WP_Query to get the posts in the desired order. This approach seems a lot more complicated and makes me think whether I should just ignore all logic and use https:\/\/wordpress.org\/plugins\/taxonomy-terms-order\/.<\/p>\n<p>Any opinions on this?<\/p>\n<p>Paddelboot<\/p>\n","protected":false},"template":"","class_list":["post-6236462","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6236462","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\/6236462\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6236462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}