{"id":1903,"date":"2016-02-06T02:42:56","date_gmt":"2016-02-06T02:42:56","guid":{"rendered":"http:\/\/docs.contentviewspro.com\/?p=1903"},"modified":"2025-12-02T23:42:28","modified_gmt":"2025-12-02T23:42:28","password":"","slug":"how-to-sort-wordpress-posts-in-view","status":"publish","type":"docs","link":"https:\/\/contentviewspro.com\/documentation\/article\/how-to-sort-wordpress-posts-in-view\/","title":{"rendered":"Sort\/order the posts"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Content Views helps you to sort the WordPress posts\/pages\/custom posts by: <br>ID, title, slug, published date, modified date, menu order.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Content Views Pro improves the sorting feature with more options:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Drag &amp; Drop<\/li>\n\n\n\n<li>Random order<\/li>\n\n\n\n<li>Custom fields<\/li>\n\n\n\n<li>Post type<\/li>\n\n\n\n<li>Comment count<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">To enable sorting, in <strong>Filter Settings<\/strong> tab, in Advance section, select the <strong>Sort by<\/strong> checkbox. <br>Then select the sort option you want to use.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"556\" height=\"64\" src=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2024\/05\/shortcode-filter-settings.png\" alt=\"\" class=\"wp-image-5938\" srcset=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2024\/05\/shortcode-filter-settings.png 556w, https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2024\/05\/shortcode-filter-settings-300x35.png 300w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"869\" height=\"558\" src=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2024\/05\/shortcode-sort.png\" alt=\"\" class=\"wp-image-5939\" srcset=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2024\/05\/shortcode-sort.png 869w, https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2024\/05\/shortcode-sort-300x193.png 300w, https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2024\/05\/shortcode-sort-768x493.png 768w\" sizes=\"auto, (max-width: 869px) 100vw, 869px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You can sort by common options, and one\/many custom fields.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To sort by custom fields, under Sort by > Custom Fields, click the <strong>Add New<\/strong> button, then:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>select your custom field in &#8220;Field Key&#8221;<\/li>\n\n\n\n<li>change the &#8220;Value Type&#8221; if needed (for example: change to Date if your custom field is a date, change to Number if your custom field is an integer, etc.)<\/li>\n\n\n\n<li>change &#8220;Order&#8221; to Descending if you want to sort the list in reverse order<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Best regards,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Content Views helps you to sort the WordPress posts\/pages\/custom posts by: ID, title, slug, published date, modified date, menu order. Content Views Pro improves the sorting feature with more options: To enable sorting, in Filter Settings tab, in Advance section, select the Sort by checkbox. Then select the sort option you want to use. You &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/contentviewspro.com\/documentation\/article\/how-to-sort-wordpress-posts-in-view\/\"> <span class=\"screen-reader-text\">Sort\/order the posts<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"doc_category":[11],"doc_tag":[28],"class_list":["post-1903","docs","type-docs","status-publish","hentry","doc_category-quick-guide","doc_tag-sort"],"year_month":"2026-09","word_count":146,"total_views":"11","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin1","author_nicename":"admin1","author_url":"https:\/\/contentviewspro.com\/documentation\/author\/admin1\/"},"doc_category_info":[{"term_name":"Quick Guide","term_url":"https:\/\/contentviewspro.com\/documentation\/cats\/quick-guide\/"}],"doc_tag_info":[{"term_name":"sort","term_url":"https:\/\/contentviewspro.com\/documentation\/tags\/sort\/"}],"_links":{"self":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/1903","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/comments?post=1903"}],"version-history":[{"count":10,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/1903\/revisions"}],"predecessor-version":[{"id":6155,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/1903\/revisions\/6155"}],"wp:attachment":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/media?parent=1903"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_category?post=1903"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=1903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}