{"id":283074,"date":"2018-04-24T18:24:27","date_gmt":"2018-04-24T18:24:27","guid":{"rendered":"https:\/\/ru.wordpress.org\/support\/topic\/%d1%84%d0%b8%d0%bb%d1%8c%d1%82%d1%80-%d1%82%d0%be%d0%b2%d0%b0%d1%80%d0%be%d0%b2-%d0%bf%d0%be-%d1%81%d0%bb%d0%be%d0%b2%d1%83\/"},"modified":"2018-04-24T18:24:27","modified_gmt":"2018-04-24T18:24:27","slug":"%d1%84%d0%b8%d0%bb%d1%8c%d1%82%d1%80-%d1%82%d0%be%d0%b2%d0%b0%d1%80%d0%be%d0%b2-%d0%bf%d0%be-%d1%81%d0%bb%d0%be%d0%b2%d1%83","status":"publish","type":"topic","link":"https:\/\/ru.wordpress.org\/support\/topic\/%d1%84%d0%b8%d0%bb%d1%8c%d1%82%d1%80-%d1%82%d0%be%d0%b2%d0%b0%d1%80%d0%be%d0%b2-%d0%bf%d0%be-%d1%81%d0%bb%d0%be%d0%b2%d1%83\/","title":{"rendered":"\u0424\u0438\u043b\u044c\u0442\u0440 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u043f\u043e \u0441\u043b\u043e\u0432\u0443"},"content":{"rendered":"<p>\u041d\u0443\u0436\u043d\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u0442\u043e\u0432\u0430\u0440\u044b \u0433\u0434\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u043e\u0432\u043e \u0438\u0437 \u0433\u0435\u0442-\u0437\u0430\u043f\u0440\u043e\u0441\u0430.<br \/>\n\u041d\u0430\u043f\u0438\u0441\u0430\u043b \u043a\u043e\u0434<\/p>\n<pre><code>if(isset($_GET[&quot;model&quot;])) {\n            $search_str = $_GET[&#039;model&#039;];\n            $loop = new WP_Query( array(&#039;s&#039; =&gt; $search_str, \n                                        &#039;suppress_filters&#039; =&gt; true,\n                                        &#039;posts_per_page&#039; =&gt; 50 ) );\n            while( $loop-&gt;have_posts() ) {\n                \n                $title = get_the_title();\n \n                $loop-&gt;the_post();\n \n                do_action( &#039;woocommerce_shop_loop&#039; );\n                wc_get_template_part( &#039;title&#039;, &#039;product&#039; );\n            }\n            wp_reset_query();\n        }<\/code><\/pre>\n<p>\u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u0442<\/p>\n","protected":false},"template":"","class_list":["post-283074","topic","type-topic","status-publish","hentry","topic-tag-filter","topic-tag-product","topic-tag-s","topic-tag-wocommerce"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/283074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/283074\/revisions"}],"wp:attachment":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=283074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}