{"id":332387,"date":"2019-08-10T15:30:04","date_gmt":"2019-08-10T12:30:04","guid":{"rendered":"https:\/\/ru.wordpress.org\/support\/topic\/%d0%b2%d1%8b%d0%b2%d0%be%d0%b4-%d0%b1%d0%bb%d0%be%d0%ba%d0%b0-%d0%b5%d1%81%d0%bb%d0%b8-%d0%b5%d1%81%d1%82%d1%8c-%d1%81%d1%81%d1%8b%d0%bb%d0%ba%d0%b8-%d0%bf%d0%be-%d0%bf%d0%be%d0%b4%d1%80%d1%83%d0%b1\/"},"modified":"2019-08-10T15:30:04","modified_gmt":"2019-08-10T12:30:04","slug":"%d0%b2%d1%8b%d0%b2%d0%be%d0%b4-%d0%b1%d0%bb%d0%be%d0%ba%d0%b0-%d0%b5%d1%81%d0%bb%d0%b8-%d0%b5%d1%81%d1%82%d1%8c-%d1%81%d1%81%d1%8b%d0%bb%d0%ba%d0%b8-%d0%bf%d0%be-%d0%bf%d0%be%d0%b4%d1%80%d1%83%d0%b1","status":"publish","type":"topic","link":"https:\/\/ru.wordpress.org\/support\/topic\/%d0%b2%d1%8b%d0%b2%d0%be%d0%b4-%d0%b1%d0%bb%d0%be%d0%ba%d0%b0-%d0%b5%d1%81%d0%bb%d0%b8-%d0%b5%d1%81%d1%82%d1%8c-%d1%81%d1%81%d1%8b%d0%bb%d0%ba%d0%b8-%d0%bf%d0%be-%d0%bf%d0%be%d0%b4%d1%80%d1%83%d0%b1\/","title":{"rendered":"\u0412\u044b\u0432\u043e\u0434 \u0431\u043b\u043e\u043a\u0430, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0438 \u043f\u043e \u043f\u043e\u0434\u0440\u0443\u0431\u0440\u0438\u043a\u0435"},"content":{"rendered":"<p>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435,<br \/>\n\u041d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u0431\u043b\u043e\u043a\u0430 &lt;section&gt; \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0431\u043b\u043e\u043a\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u0430\u043c\u0430 \u0437\u0430\u043f\u0438\u0441\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u043f\u043e\u0434\u0440\u0443\u0431\u0440\u0438\u043a\u0435, \u0441\u043a\u0430\u0436\u0435\u043c &#171;\u0446\u0432\u0435\u0442\u044b&#187; \u0440\u0443\u0431\u0440\u0438\u043a\u0438 &#171;\u0440\u0430\u0441\u0442\u0435\u043d\u0438\u044f&#187;. \u0412\u0442\u043e\u0440\u043e\u0439 \u0431\u043b\u043e\u043a \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0435\u0441\u044f \u0432 \u043f\u043e\u0434\u0440\u0443\u0431\u0440\u0438\u043a\u0435 &#171;\u0446\u0432\u0435\u0442\u044b&#187; (&#171;\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e \u0442\u0435\u043c\u0435:&#187;).<br \/>\n<em><strong>\u041f\u0440\u0438\u043c\u0435\u0440 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u043a\u043e\u0434\u0430:<\/strong><\/em><\/p>\n<pre><code>&lt;section class=&quot;intro_artical&quot;&gt;\n&lt;div id=&quot;dopsubject&quot;&gt;\n&lt;a name=&quot;1&quot;&gt;&lt;\/a&gt;&lt;ul&gt;\n&lt;li&gt;&lt;span&gt;\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e \u0442\u0435\u043c\u0435:&lt;\/span&gt;&lt;\/li&gt;\n&lt;ul&gt;\n&lt;?php \n$category = get_the_category();\nrsort($category);\n$cat_add_id = $category[0]-&gt;term_id;\n$real_id = get_the_ID();                \n$args = array(&#039;posts_per_page&#039; =&gt; 10, &#039;order&#039;=&gt; &#039;ASC&#039;,  &#039;cat&#039; =&gt;$cat_add_id);\n$posts = get_posts($args);\nforeach( $posts as $post ){\n\tsetup_postdata($post);\n\tif ($post-&gt;ID  &lt;&gt; $real_id){\n\t?&gt;\n    &lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/li&gt;\n &lt;?php\n\t}\n}\nwp_reset_postdata();\n?&gt;\n&lt;\/ul&gt;\n&lt;\/ul&gt;\n&lt;\/div&gt;\n&lt;\/section&gt;<\/code><\/pre>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441:<\/strong><br \/>\n\u041f\u043e\u0434\u0441\u043a\u0430\u0436\u0438\u0442\u0435 \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u043a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434, \u0447\u0442\u043e\u0431\u044b \u0432\u0442\u043e\u0440\u043e\u0439 \u0431\u043b\u043e\u043a \u043f\u043e\u044f\u0432\u043b\u044f\u043b\u0441\u044f \u043b\u0438\u0448\u044c \u0442\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u0432 \u043f\u043e\u0434\u0440\u0443\u0431\u0440\u0438\u043a\u0435 &#171;\u0446\u0432\u0435\u0442\u044b&#187; \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u043e\u0434\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438.<br \/>\n\u0417\u0430\u0440\u0430\u043d\u0435\u0435 \u0432\u0441\u0435\u043c \u0441\u043f\u0430\u0441\u0438\u0431\u043e.<\/p>\n","protected":false},"template":"","class_list":["post-332387","topic","type-topic","status-publish","hentry","topic-tag-php","topic-tag-wordpress","topic-tag-wp"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/332387","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\/332387\/revisions"}],"wp:attachment":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=332387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}