{"id":205172,"date":"2016-03-31T05:03:12","date_gmt":"2016-03-31T05:03:12","guid":{"rendered":""},"modified":"2016-07-31T01:55:30","modified_gmt":"2016-07-31T01:55:30","slug":"%d0%ba%d0%b0%d0%ba-%d1%81%d0%b4%d0%b5%d0%bb%d0%b0%d1%82%d1%8c-%d0%bf%d0%be%d0%b4%d0%bf%d0%b8%d1%81%d0%ba%d1%83-%d0%bd%d0%b0-%d0%ba%d0%b0%d1%82%d0%b5%d0%b3%d0%be%d1%80%d0%b8%d0%b8-%d0%b8-%d1%82%d0%b5","status":"publish","type":"topic","link":"https:\/\/ru.wordpress.org\/support\/topic\/%d0%ba%d0%b0%d0%ba-%d1%81%d0%b4%d0%b5%d0%bb%d0%b0%d1%82%d1%8c-%d0%bf%d0%be%d0%b4%d0%bf%d0%b8%d1%81%d0%ba%d1%83-%d0%bd%d0%b0-%d0%ba%d0%b0%d1%82%d0%b5%d0%b3%d0%be%d1%80%d0%b8%d0%b8-%d0%b8-%d1%82%d0%b5\/","title":{"rendered":"\u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0443 \u043d\u0430 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u0438 \u0442\u0435\u0433\u0438 \u043a\u0430\u043a \u043d\u0430 habrahabr.ru?"},"content":{"rendered":"<p>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435.<br \/>\n\u0425\u043e\u0447\u0443 \u043d\u0430 wordpress \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 \u043d\u0430 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438, \u0442\u0435\u0433\u0438 \u0438 \u0438\u043d\u044b\u0435 \u0442\u0430\u043a\u0441\u043e\u043d\u043e\u043c\u0438\u0438 (\u043d\u0430\u043f\u043e\u0434\u043e\u0431\u0438\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u043d\u0430 \u0445\u0430\u0431\u0440\u0435). \u0422.\u0435. \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0435\u043d, \u0442\u043e \u0435\u0433\u043e \u043b\u0435\u043d\u0442\u0430 \u043f\u043e\u0441\u0442\u043e\u0432 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u0437 \u0442\u0435\u0445 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439 \u0438 \u0442\u0435\u0433\u043e\u0432, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d.<br \/>\n\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043f\u043e\u043b\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439 (\u0434\u0443\u043c\u0430\u044e, \u0434\u043b\u044f \u0442\u0435\u0433\u043e\u0432 \u0438 \u0438\u043d\u044b\u0445 \u0442\u0430\u043a\u0441\u043e\u043d\u043e\u043c\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u0438\u043c \u0436\u0435). \u0424\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043b\u0435\u043d\u0442\u044b \u043f\u043e\u0441\u0442\u043e\u0432 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e, \u043d\u043e \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 \u043d\u0430 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044e, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u0443\u044e \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0443\u044e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u043d\u0430 \u043d\u0430\u0436\u0430\u0442\u0430, \u0432 \u043f\u043e\u043b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<br \/>\n\u041a\u043e\u0434 category.php \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439:<\/p>\n<pre><code>get_header(); ?&gt;\n\n  &lt;main id=&quot;main&quot; class=&quot;site-main col-md-9 col-md-push-3&quot; role=&quot;main&quot;&gt;\n\n    &lt;?php if ( have_posts() ) : ?&gt;\n\n      &lt;header class=&quot;page-header&quot;&gt;\n        &lt;?php\n          the_archive_title( &#039;&lt;h1 class=&quot;page-title&quot;&gt;&#039;, &#039;&lt;\/h1&gt;&#039; );\n        ?&gt;\n      &lt;form method = &quot;post&quot;&gt;\n        &lt;input type = &quot;submit&quot; name = &quot;button1&quot; value = &quot;\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f&quot;&gt;\n      &lt;form&gt;\n      &lt;?php\n        if($_POST[&#039;button1&#039;]) {\n          $user_ID = get_current_user_id();\n          $NewCategoryID = get_the_category();\n          $NewCategories =  the_author_meta(&#039;user_categories&#039;).&#039;,&#039;.$NewCategoryID-&gt;cat_ID;\n          update_user_meta( $user_ID, &#039;user_categories&#039;, $NewCategories );\t\t\t\t}\n      ?&gt;\n      &lt;\/header&gt;&lt;!-- .page-header --&gt;\n\n      &lt;div id=&quot;posts-container&quot;&gt;\n      ......<\/code><\/pre>\n<p>\u042d\u0442\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442: \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u0432\u0441\u0451 \u0442\u0435 \u0436\u0435 \u043f\u043e\u0441\u0442\u044b \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438 \u0431\u044b\u043b\u0430 \u043d\u0430\u0436\u0430\u0442\u0430 \u043a\u043d\u043e\u043f\u043a\u0430.<br \/>\n\u041f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u043a\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438.<\/p>\n","protected":false},"template":"","class_list":["post-205172","topic","type-topic","status-publish","hentry","topic-tag-button","topic-tag-category","topic-tag-taxonomy"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/205172","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\/205172\/revisions"}],"wp:attachment":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=205172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}