{"id":297001,"date":"2018-09-14T21:15:37","date_gmt":"2018-09-14T18:15:37","guid":{"rendered":"https:\/\/ru.wordpress.org\/support\/topic\/%d0%ba%d0%b0%d0%ba-%d0%b2%d1%8b%d0%b2%d0%b5%d1%81%d1%82%d0%b8-%d0%bf%d0%be%d1%81%d1%82%d1%8b-%d0%bf%d0%be-%d0%ba%d0%b0%d1%82%d0%b5%d0%b3%d0%be%d1%80%d0%b8%d1%8f%d0%bc\/"},"modified":"2018-09-14T21:15:37","modified_gmt":"2018-09-14T18:15:37","slug":"%d0%ba%d0%b0%d0%ba-%d0%b2%d1%8b%d0%b2%d0%b5%d1%81%d1%82%d0%b8-%d0%bf%d0%be%d1%81%d1%82%d1%8b-%d0%bf%d0%be-%d0%ba%d0%b0%d1%82%d0%b5%d0%b3%d0%be%d1%80%d0%b8%d1%8f%d0%bc","status":"publish","type":"topic","link":"https:\/\/ru.wordpress.org\/support\/topic\/%d0%ba%d0%b0%d0%ba-%d0%b2%d1%8b%d0%b2%d0%b5%d1%81%d1%82%d0%b8-%d0%bf%d0%be%d1%81%d1%82%d1%8b-%d0%bf%d0%be-%d0%ba%d0%b0%d1%82%d0%b5%d0%b3%d0%be%d1%80%d0%b8%d1%8f%d0%bc\/","title":{"rendered":"\u041a\u0430\u043a \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043f\u043e\u0441\u0442\u044b \u043f\u043e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u043c?"},"content":{"rendered":"<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442.<\/p>\n<p>\u0425\u043e\u0447\u0443 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u0442\u0438\u043f \u043f\u043e\u0441\u0442\u043e\u0432 \u043f\u043e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u043c. \u0415\u0441\u0442\u044c 3 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438, \u0432 \u043d\u0438\u0445 \u043f\u043e\u0441\u0442\u044b. \u0412\u044b\u0432\u043e\u0436\u0443 \u043f\u043e\u0441\u0442\u044b \u043f\u043e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u043c \u0441\u043b\u0430\u0439\u0434\u0430\u043c\u0438.<\/p>\n<p>\u041a\u043e\u0434:<\/p>\n<pre><code>&lt;div id=&quot;page&quot; class=&quot;single&quot;&gt;\n&lt;?php \n$arg_cat = array(\n&#039;orderby&#039;      =&gt; &#039;name&#039;,\n&#039;order&#039;        =&gt; &#039;ASC&#039;,\n&#039;hide_empty&#039;   =&gt; 1,\n&#039;exclude&#039;      =&gt; &#039;&#039;,\n&#039;include&#039;      =&gt; &#039;&#039;,\n&#039;taxonomy&#039;     =&gt; &#039;category&#039;,\n);\n$categories = get_categories( $arg_cat );\n?&gt;\n&lt;div class=&quot;wrapper&quot;&gt;\n  &lt;div class=&quot;gallery&quot; &gt;\n    \n      &lt;?php if( $categories ){\n      foreach($categories as $cat){\n        $arg_posts =  array(\n          &#039;orderby&#039;      =&gt; &#039;name&#039;,\n          &#039;order&#039;        =&gt; &#039;ASC&#039;,\n          &#039;posts_per_page&#039; =&gt; 5,\n          &#039;post_type&#039; =&gt; &#039;gallery&#039;,\n          &#039;post_status&#039; =&gt; &#039;publish&#039;,\n          &#039;cat&#039; =&gt; $cat-&gt;cat_ID,\n        );\n        $query = new WP_Query($arg_posts);\n        ?&gt;\n        &lt;div class=&quot;owl-carousel two gallery&quot;&gt;\n        &lt;?php if ($query-&gt;have_posts() ) ?&gt;\n        &lt;?php while ( $query-&gt;have_posts() ) : $query-&gt;the_post(); ?&gt;\n        \n            \t&lt;div class=&quot;slide&quot; style=&quot;background-image: url(&lt;?php echo get_the_post_thumbnail_url( $query-&gt;ID, &#039;large&#039;); ?&gt;);&quot;&gt;&lt;\/div&gt;\n         &lt;?php endwhile; wp_reset_postdata()?&gt;\n          &lt;\/div&gt;\n        &lt;?php\t\t\n        }\n        }\n        ?&gt;\n  &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre>\n<p>\u0412\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a\u0440\u0438\u0432\u043e.<\/p>\n<p>\u0425\u043e\u0447\u0443 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043e\u0434\u0438\u043d \u0441\u043b\u0430\u0439\u0434\u0435\u0440, \u043f\u043e\u0442\u043e\u043c \u0441\u043d\u0438\u0437\u0443 \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u043b\u0430\u0439\u0434\u0435\u0440 \u0438 \u0442\u0440\u0435\u0442\u0438\u0439.<\/p>\n","protected":false},"template":"","class_list":["post-297001","topic","type-topic","status-publish","hentry","topic-tag-wordpress"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/297001","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\/297001\/revisions"}],"wp:attachment":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=297001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}