{"id":6304,"date":"2016-04-29T13:53:56","date_gmt":"2016-04-29T17:53:56","guid":{"rendered":"https:\/\/themespress.ca\/?p=6304"},"modified":"2022-09-09T19:53:58","modified_gmt":"2022-09-09T23:53:58","slug":"query-rank-number-post-type","status":"publish","type":"post","link":"https:\/\/themespress.ca\/en\/query-rank-number-post-type\/","title":{"rendered":"Query Rank number Post type"},"content":{"rendered":"<p>This post offers a new download of files which includes a function that will allow you to display Post Type sorted inside the <strong>single.php<\/strong> file. So for example, you have a post type and Post Meta Key views which let you display the number of views by product. <\/p>\n<h2>Query Rank number Post type<\/h2>\n<p>Our function allows you to sort products by number of views.<\/p>\n<p>The function is ready to use out of the box. Just two parameters to adjust inside the query: Post Type name and Post Meta Key name; views or likes for example.<\/p>\n<h2>Download<\/h2>\n<p><a class=\"more\" href=\"https:\/\/themespress.ca\/produits\/ressources\/query-rank-number-post-type\/\">Query Rank number Post type<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post offers a new download of files which includes a function that will allow you to display Post Type sorted inside the single.php file. So for example, you have<\/p>\n<div class=\"read-more\"><a class=\"btn button-secondary\" href=\"https:\/\/themespress.ca\/en\/query-rank-number-post-type\/\">Read More<\/a><\/div>\n","protected":false},"author":81,"featured_media":4529,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[283],"tags":[322],"class_list":["post-6304","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-query"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts\/6304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/users\/81"}],"replies":[{"embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/comments?post=6304"}],"version-history":[{"count":0,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts\/6304\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/media\/4529"}],"wp:attachment":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/media?parent=6304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/categories?post=6304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/tags?post=6304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}