{"id":231939,"date":"2023-01-10T13:08:00","date_gmt":"2023-01-10T10:08:00","guid":{"rendered":"https:\/\/wordpress.mediadoma.com\/?p=231939"},"modified":"2022-11-10T05:48:12","modified_gmt":"2022-11-10T02:48:12","slug":"jetpack-infinite-scroll-dlja-rezultativ-poshuku","status":"publish","type":"post","link":"https:\/\/wordpress.mediadoma.com\/uk\/jetpack-infinite-scroll-dlja-rezultativ-poshuku\/","title":{"rendered":"Jetpack Infinite Scroll \u0434\u043b\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0456\u0432 \u043f\u043e\u0448\u0443\u043a\u0443"},"content":{"rendered":"<p>Jetpack \u043c\u0430\u0454 \u0444\u0443\u043d\u043a\u0446\u0456\u044e \u043d\u0435\u0441\u043a\u0456\u043d\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043a\u0440\u0443\u0447\u0443\u0432\u0430\u043d\u043d\u044f, \u0430\u043a\u0442\u0438\u0432\u043e\u0432\u0430\u043d\u0443 \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0443 \u0430\u0440\u0445\u0456\u0432\u0443 \u0442\u0430 \u0431\u043b\u043e\u0433\u0443. \u041e\u0434\u043d\u0430\u043a \u0439\u043e\u0433\u043e \u0432\u0438\u043c\u043a\u043d\u0435\u043d\u043e \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0443 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0456\u0432 \u043f\u043e\u0448\u0443\u043a\u0443.<\/p>\n<h2>\u041e\u0433\u043b\u044f\u0434<\/h2>\n<p>Infinite Scroll \u0432\u043a\u043b\u044e\u0447\u0430\u0454 \u0444\u0456\u043b\u044c\u0442\u0440, \u0449\u043e\u0431 \u0432\u043a\u0430\u0437\u0430\u0442\u0438, \u0447\u0438 \u0432\u0456\u043d \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u0443\u0454\u0442\u044c\u0441\u044f \u0447\u0438 \u043d\u0456, \u0456 \u043c\u0438 \u043c\u043e\u0436\u0435\u043c\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0443\u043c\u043e\u0432\u043d\u0438\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440, \u0449\u043e\u0431 \u0437\u043c\u0456\u043d\u0438\u0442\u0438 \u043f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f. \u0424\u0456\u043b\u044c\u0442\u0440 \u0454, <code>infinite_scroll_archive_supported<\/code>\u0456 \u0432\u0456\u043d \u043e\u0442\u0440\u0438\u043c\u0443\u0454 \u043b\u043e\u0433\u0456\u0447\u043d\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f, \u044f\u043a\u0435 \u0432\u043a\u0430\u0437\u0443\u0454 \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u0443\u0432\u0430\u043d\u0438\u0439 \u0441\u0442\u0430\u043d \u0434\u043b\u044f \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0443 \u0442\u0430 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u0456\u043d\u0456\u0446\u0456\u0430\u043b\u0456\u0437\u0430\u0446\u0456\u0457 \u043d\u0435\u0441\u043a\u0456\u043d\u0447\u0435\u043d\u043d\u043e\u0457 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438 \u044f\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438.<\/p>\n<h2>\u041f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u0430 \u0444\u0456\u043b\u044c\u0442\u0440\u0430\u0446\u0456\u0457 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0443<\/h2>\n<p>\u041c\u0438 \u043d\u0430\u043f\u0438\u0448\u0435\u043c\u043e \u0443\u043c\u043e\u0432\u0443, \u043f\u043e\u0434\u0456\u0431\u043d\u0443 \u0434\u043e \u0442\u0456\u0454\u0457, \u044f\u043a\u0443 \u0437\u043d\u0430\u0439\u0434\u0435\u043d\u043e \u0443 \u0444\u0456\u043b\u044c\u0442\u0440\u0456, \u0430\u043b\u0435 \u0434\u043e\u0434\u0430\u043c\u043e is_search, \u0449\u043e\u0431 \u0432\u043e\u043d\u0430 \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0430\u043b\u0430\u0441\u044f \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u0445 \u043f\u043e\u0448\u0443\u043a\u0443. \u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0435 \u0443 \u0444\u0430\u0439\u043b functions.php \u0432\u0430\u0448\u043e\u0457 \u0442\u0435\u043c\u0438 \u0447\u0438 \u043f\u043e\u0434\u0456\u0431\u043d\u0438\u0439:<\/p>\n<pre><code>\/**\n * Enables Jetpack's Infinite Scroll in search pages, disables it in product archives\n * @return bool\n *\/\nfunction tr_theme_jetpack_infinite_scroll_supported() {\n    return current_theme_supports( 'infinite-scroll') &amp;&amp; (is_home() || is_archive() || is_search() );\n}\nadd_filter( 'infinite_scroll_archive_supported', 'tr_theme_jetpack_infinite_scroll_supported' );\n<\/code><\/pre>\n<h2>\u0412\u0438\u043c\u043a\u043d\u0435\u043d\u043d\u044f \u043d\u0435\u0441\u043a\u0456\u043d\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043a\u0440\u0443\u0447\u0443\u0432\u0430\u043d\u043d\u044f \u0432 \u0430\u0440\u0445\u0456\u0432\u0430\u0445 \u0441\u043f\u0435\u0446\u0456\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0443 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0439<\/h2>\n<p>\u041c\u043e\u0436\u043b\u0438\u0432\u043e, \u0443 \u0432\u0430\u0441 \u0454 \u043f\u0435\u0432\u043d\u0438\u0439 \u0441\u043f\u0435\u0446\u0456\u0430\u043b\u044c\u043d\u0438\u0439 \u0430\u0440\u0445\u0456\u0432 \u0434\u043e\u043f\u0438\u0441\u0456\u0432, \u044f\u043a-\u043e\u0442 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438 WooCommerce, \u0456 \u0432\u0438 \u0445\u043e\u0447\u0435\u0442\u0435 \u0432\u0438\u043c\u043a\u043d\u0443\u0442\u0438 Jetpack Infinite Scroll \u0434\u043b\u044f \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0443 \u0442\u0430 \u0430\u0440\u0445\u0456\u0432\u0456\u0432 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0456\u0432 WooCommerce. \u041e\u0441\u044c \u0449\u043e \u0432\u0438 \u0431 \u0442\u043e\u0434\u0456 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043b\u0438:<\/p>\n<pre><code>\/**\n * Enables Jetpack's Infinite Scroll in search pages, disables it in product archives\n * @return bool\n *\/\nfunction tr_theme_jetpack_infinite_scroll_supported() {\n    return current_theme_supports( 'infinite-scroll') &amp;&amp; (is_home() || is_archive() || is_search()) &amp;&amp;! is_post_type_archive( 'product' );\n}\nadd_filter( 'infinite_scroll_archive_supported', 'tr_theme_jetpack_infinite_scroll_supported' );\n<\/code><\/pre>\n<p>\u041c\u0438 \u043d\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454\u043c\u043e \u0442\u0430\u043a\u0443 \u0444\u0443\u043d\u043a\u0446\u0456\u044e, <code>is_woocommerce<\/code>\u0442\u043e\u043c\u0443 \u0449\u043e \u044f\u043a\u0449\u043e \u0432\u0438 \u043a\u043e\u043b\u0438\u0441\u044c \u0432\u0438\u043c\u043a\u043d\u0435\u0442\u0435 \u043f\u043b\u0430\u0433\u0456\u043d WooCommerce, \u0441\u0430\u0439\u0442 \u0441\u0442\u0430\u043d\u0435 \u043f\u043e\u0440\u043e\u0436\u043d\u0456\u043c, \u043e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 <code>is_woocommerce<\/code>\u0444\u0443\u043d\u043a\u0446\u0456\u044f \u0431\u0456\u043b\u044c\u0448\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435 \u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u0430, \u0456 \u0446\u0435 \u0432\u0438\u043a\u043b\u0438\u0447\u0435 \u0444\u0430\u0442\u0430\u043b\u044c\u043d\u0443 \u043f\u043e\u043c\u0438\u043b\u043a\u0443.<\/p>\n<p><div id=\"PostUnique_PostSource\" style=\"padding-top: 50px\">\u0414\u0436\u0435\u0440\u0435\u043b\u043e \u0437\u0430\u043f\u0438\u0441\u0443:  <a target=\"_blank\" rel=\"noopener nofollow\" href=\"\/\/startfunction.com\" class=\"external external_icon\">startfunction.com<\/a><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u0456\u0437\u043d\u0430\u0439\u0442\u0435\u0441\u044f, \u044f\u043a \u0443\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438 Jetpack Infinite Scroll \u0443 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u0445 \u043f\u043e\u0448\u0443\u043a\u0443 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0444\u0456\u043b\u044c\u0442\u0440\u0430 \u0442\u0430 \u044f\u043a \u0432\u0438\u043c\u043a\u043d\u0443\u0442\u0438 \u0439\u043e\u0433\u043e \u0434\u043b\u044f \u0441\u043f\u0435\u0446\u0456\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0430\u0440\u0445\u0456\u0432\u0443 \u0434\u043e\u043f\u0438\u0441\u0456\u0432.<\/p>\n","protected":false},"author":1,"featured_media":157919,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_wp_rev_ctl_limit":""},"categories":[869,839,849,819],"tags":[1174],"class_list":["post-231939","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-10","category-kerivnytstvo-dlia-pochatkivtsiv","category-pidruchnyky","category-plahiny","tag-affiai-uk"],"_links":{"self":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/posts\/231939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/comments?post=231939"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/posts\/231939\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/media\/157919"}],"wp:attachment":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/media?parent=231939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/categories?post=231939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/tags?post=231939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}