{"id":2352,"date":"2017-01-11T05:30:36","date_gmt":"2017-01-11T05:30:36","guid":{"rendered":"http:\/\/docs.contentviewspro.com\/?p=2352"},"modified":"2023-12-27T10:45:12","modified_gmt":"2023-12-27T10:45:12","password":"","slug":"shuffle-filter-use-dropdown-type-on-mobile-devices","status":"publish","type":"docs","link":"https:\/\/contentviewspro.com\/documentation\/article\/shuffle-filter-use-dropdown-type-on-mobile-devices\/","title":{"rendered":"Shuffle Filter &#8211; use Dropdown type on mobile devices"},"content":{"rendered":"<p>Dropdown is the most compact type to show shuffle filters, especially on mobile devices.<br \/>\nIf you want to use another shuffle type in desktop and tablet devices, but use the Dropdown type on mobile devices, please add this code to file <strong>functions.php<\/strong> in the theme&#8217;s folder (or install this plugin <a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\" rel=\"nofollow\">Code Snippets<\/a> then add this code to <a href=\"https:\/\/ps.w.org\/code-snippets\/assets\/screenshot-2.png\" rel=\"nofollow\">the &#8220;Code&#8221; textarea<\/a>):<\/p>\n<pre style=\"font-size:13px\">\n\/\/ Content Views Pro - Use dropdown for Shuffle Filter in mobile devices\nadd_filter( 'pt_cv_sfilter_type', 'cvp_theme_sfilter_type_mobile', 100, 1 );\nfunction cvp_theme_sfilter_type_mobile( $args ) {\n\n\tif ( method_exists( 'PT_CV_Functions_Pro', 'check_device' ) && PT_CV_Functions_Pro::check_device( 'mobile' ) ) {\n\t\t$args = 'vertical-dropdown';\n\t}\n\n\treturn $args;\n}\n<\/pre>\n<p>Best regards,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dropdown is the most compact type to show shuffle filters, especially on mobile devices. If you want to use another shuffle type in desktop and tablet devices, but use the Dropdown type on mobile devices, please add this code to file functions.php in the theme&#8217;s folder (or install this plugin Code Snippets then add this &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/contentviewspro.com\/documentation\/article\/shuffle-filter-use-dropdown-type-on-mobile-devices\/\"> <span class=\"screen-reader-text\">Shuffle Filter &#8211; use Dropdown type on mobile devices<\/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-2352","docs","type-docs","status-publish","hentry","doc_category-shuffle-filter","doc_tag-shuffle-filter"],"year_month":"2026-10","word_count":113,"total_views":"1","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\/2352","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=2352"}],"version-history":[{"count":1,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/2352\/revisions"}],"predecessor-version":[{"id":5429,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/2352\/revisions\/5429"}],"wp:attachment":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/media?parent=2352"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_category?post=2352"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=2352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}