{"id":68631,"date":"2012-04-30T13:37:53","date_gmt":"2012-04-30T13:37:53","guid":{"rendered":""},"modified":"2016-07-30T23:12:03","modified_gmt":"2016-07-30T23:12:03","slug":"%d0%bf%d0%be%d0%bc%d0%b5%d0%bd%d1%8f%d1%82%d1%8c-%d0%b2%d1%8b%d0%b2%d0%be%d0%b4-%d0%b8%d0%b7%d0%b1%d1%80%d0%b0%d0%bd%d0%bd%d1%8b%d1%85-%d0%b7%d0%b0%d0%bf%d0%b8%d1%81%d0%b5%d0%b9-%d0%bd%d0%b0-%d0%b2","status":"closed","type":"topic","link":"https:\/\/ru.wordpress.org\/support\/topic\/%d0%bf%d0%be%d0%bc%d0%b5%d0%bd%d1%8f%d1%82%d1%8c-%d0%b2%d1%8b%d0%b2%d0%be%d0%b4-%d0%b8%d0%b7%d0%b1%d1%80%d0%b0%d0%bd%d0%bd%d1%8b%d1%85-%d0%b7%d0%b0%d0%bf%d0%b8%d1%81%d0%b5%d0%b9-%d0%bd%d0%b0-%d0%b2\/","title":{"rendered":"\u041f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u0438\u0437\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u043d\u0430 \u0432\u044b\u0432\u043e\u0434 \u043d\u043e\u0432\u044b\u0445"},"content":{"rendered":"<p>\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c.<br \/>\n\u0414\u0435\u043b\u0430\u044e \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u043e\u0434\u0438\u043d \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u0430\u0439\u0442. \u0412\u0437\u044f\u043b \u0445\u043e\u0440\u043e\u0448\u0438\u0439, \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d, \u0430\u0432\u0442\u043e\u0440 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043e\u0442\u043e\u0448\u0435\u043b \u043e\u0442 \u0434\u0435\u043b, \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043d\u0435 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442.<br \/>\n\u0412 \u044d\u0442\u043e\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u0435 \u0435\u0441\u0442\u044c \u0431\u043b\u043e\u043a \u0432\u044b\u0432\u043e\u0434\u0430 \u0438\u0437\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u0435. \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u043d \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code>&lt;div class=&quot;cat2&quot;&gt;\n&lt;h2&gt;\u041b\u0443\u0447\u0448\u0435\u0435&lt;\/h2&gt;\n&lt;\/div&gt;\n&lt;div class=&quot;blok2&quot;&gt;\n &lt;div style=&quot;clear:both;&quot;&gt;&lt;\/div&gt;\n &lt;?php $my_query = new WP_Query(&quot;cat=$kon_cat&amp;showposts=4&quot;);\n         while ($my_query-&gt;have_posts()) : $my_query-&gt;the_post();\n   ?&gt;\n  &lt;?php $thumb = get_post_meta($post-&gt;ID, &#039;postimage&#039;, $single = true); ?&gt;\n&lt;?php\nif($thumb !== &#039;&#039;) { ?&gt;\n&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php bloginfo(&#039;stylesheet_directory&#039;); ?&gt;\/timthumb.php?src=&lt;?php echo $thumb; ?&gt;&amp;h=100&amp;w=100&amp;q=50&amp;zc=1&quot; alt=&quot;&lt;?php if($thumb_alt !== &#039;&#039;) { echo $thumb_alt; } else { echo the_title(); } ?&gt;&quot;  style=&quot;float:left; margin:5px 14px 12px 8px; border:5px solid #948d89;&quot; \/&gt;&lt;\/a&gt;\n&lt;?php }\nelse { echo &#039;&#039;; } ?&gt;\n\n&lt;?php endwhile; ?&gt;\n  &lt;div style=&quot;clear:both;&quot;&gt;&lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre>\n<p>\u041c\u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u0438\u0437\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u043d\u0430 \u0432\u044b\u0432\u043e\u0434 \u043d\u043e\u0432\u044b\u0445. \u0412 PHP, \u043a \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u043c\u0443 \u043c\u043e\u0435\u043c\u0443 \u0441\u0442\u044b\u0434\u0443 \u043d\u0435 \u0441\u0438\u043b\u0435\u043d (\u0442\u043e\u0447\u043d\u0435\u0435, \u043f\u043e\u0447\u0442\u0438 \u043d\u043e\u043b\u044c), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0438\u043b \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u0432\u0430\u043c \u0437\u0430 \u043f\u043e\u043c\u043e\u0449\u044c\u044e.<br \/>\n\u0427\u0442\u043e \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0432 \u043a\u043e\u0434\u0435, \u0447\u0442\u043e \u0431\u044b \u0440\u0435\u0448\u0438\u0442\u044c \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443. \u041e\u0441\u043e\u0431\u043e \u0431\u0443\u0434\u0443 \u043f\u0440\u0438\u0437\u043d\u0430\u0442\u0435\u043b\u0435\u043d \u0437\u0430 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044b\u0439 \u043e\u0442\u0432\u0435\u0442, \u043d\u043e \u0438 \u0437\u0430 \u043e\u0442\u0432\u0435\u0442 \u0431\u0435\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0443 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0435\u043d.<br \/>\n\u0417\u0430\u0440\u0430\u043d\u0435\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e.<\/p>\n","protected":false},"template":"","class_list":["post-68631","topic","type-topic","status-closed","hentry","topic-tag-114","topic-tag-991","topic-tag-3077","topic-tag-339","topic-tag-2578"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/68631","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\/68631\/revisions"}],"wp:attachment":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=68631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}