{"id":1696,"date":"2017-06-20T00:07:49","date_gmt":"2017-06-20T00:07:49","guid":{"rendered":"http:\/\/docs.contentviewspro.com\/?p=1696"},"modified":"2024-01-02T10:09:55","modified_gmt":"2024-01-02T10:09:55","password":"","slug":"shuffle-filter-hide-posts-beginning","status":"publish","type":"docs","link":"https:\/\/contentviewspro.com\/documentation\/article\/shuffle-filter-hide-posts-beginning\/","title":{"rendered":"Shuffle Filter &#8211; hide all posts at beginning"},"content":{"rendered":"<p>By default, posts will be visible under filters list of Shuffle Filter.<br \/>\nTo hide these posts at page load, Please add this code to <strong>Custom JS<\/strong> field in Content Views >> Settings page:<\/p>\n<pre style=\"font-size:13px\">\n\/* Hide items at the beginning *\/\nvar cvp_hidden = 0;\n$('.pt-cv-page').on('layout.shuffle', function() {\n    if (!cvp_hidden) {\n        $(this).css('height', 0);\n    }\n    cvp_hidden++;\n})\n<\/pre>\n<p>Best regards,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, posts will be visible under filters list of Shuffle Filter. To hide these posts at page load, Please add this code to Custom JS field in Content Views >> Settings page: \/* Hide items at the beginning *\/ var cvp_hidden = 0; $(&#8216;.pt-cv-page&#8217;).on(&#8216;layout.shuffle&#8217;, function() { if (!cvp_hidden) { $(this).css(&#8216;height&#8217;, 0); } cvp_hidden++; }) &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/contentviewspro.com\/documentation\/article\/shuffle-filter-hide-posts-beginning\/\"> <span class=\"screen-reader-text\">Shuffle Filter &#8211; hide all posts at beginning<\/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":[53],"doc_tag":[33],"class_list":["post-1696","docs","type-docs","status-publish","hentry","doc_category-shuffle-filter","doc_tag-shuffle-filter"],"year_month":"2026-09","word_count":56,"total_views":0,"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":"Shuffle Filter","term_url":"https:\/\/contentviewspro.com\/documentation\/cats\/shuffle-filter\/"}],"doc_tag_info":[{"term_name":"shuffle filter","term_url":"https:\/\/contentviewspro.com\/documentation\/tags\/shuffle-filter\/"}],"_links":{"self":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/1696","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=1696"}],"version-history":[{"count":2,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/1696\/revisions"}],"predecessor-version":[{"id":5717,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/1696\/revisions\/5717"}],"wp:attachment":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/media?parent=1696"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_category?post=1696"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=1696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}