{"id":15588882,"date":"2022-04-25T14:29:47","date_gmt":"2022-04-25T14:29:47","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/sorting-shortcode\/"},"modified":"2022-04-25T14:29:47","modified_gmt":"2022-04-25T14:29:47","slug":"sorting-shortcode","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/sorting-shortcode\/","title":{"rendered":"Sorting shortcode"},"content":{"rendered":"<p>In the documentation, I see the custom sorting codes as follows:<br \/>\n[es_my_listing sort=&#8221;recent&#8221;] &#8211; displays recent listings first<br \/>\n[es_my_listing sort=&#8221;oldest&#8221;] &#8211; displays oldest listings first<br \/>\n[es_my_listing sort=&#8221;featured&#8221;] &#8211; displays featured listings first<br \/>\n[es_my_listing sort=&#8221;title&#8221;] &#8211; displays listings in alphabetic order`<\/p>\n<p>Is there a code for sorting by price?<br \/>\nThis is the current code I&#8217;m using but does not work:<br \/>\n[es_my_listing status=&#8221;SOLD&#8221; layout=&#8221;3_col&#8221; sort=&#8221;highest_price&#8221;]<\/p>\n<p>-PS- The example page does list the listings by the price but I entered the listings in the order of the price so the highest-priced listing is the newest to hack the issue but not feasible for the long run.<\/p>\n","protected":false},"template":"","class_list":["post-15588882","topic","type-topic","status-publish","hentry","topic-tag-sort","topic-tag-sorting"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15588882","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\/15588882\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15588882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}