{"id":11509034,"date":"2019-05-08T13:00:18","date_gmt":"2019-05-08T13:00:18","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/sorting-38\/"},"modified":"2019-05-08T13:06:27","modified_gmt":"2019-05-08T13:06:27","slug":"sorting-38","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/sorting-38\/","title":{"rendered":"Sorting"},"content":{"rendered":"<p>How to add meta values in wordpress pages for sorting. As per FAQ we have seen that by using below short code we can use sorting. <\/p>\n<p>[wcp-carousel id=&#8221;1609&#8243; order=&#8221;DESC&#8221; orderby=&#8221;meta_value&#8221; meta_key=&#8221;purchased_date&#8221;]<\/p>\n<p>But we are trying to do the below.<\/p>\n<p>-&gt; Post type is pages<br \/>\n-&gt; Added few pages in select posts<\/p>\n<p>Now we want to know what is a meta_key. Where exactly is the purchased_date ? Since we have added post_type as pages. Where do we need to add this purchased_date ? what does the meta_key refer to in pages ?<\/p>\n","protected":false},"template":"","class_list":["post-11509034","topic","type-topic","status-publish","hentry","topic-tag-order"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11509034","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":2,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11509034\/revisions"}],"predecessor-version":[{"id":11509059,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11509034\/revisions\/11509059"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11509034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}