{"id":187640,"date":"2015-10-07T21:05:48","date_gmt":"2015-10-07T21:05:48","guid":{"rendered":"https:\/\/ru.wordpress.org\/support\/2015\/10\/07\/html-%d0%ba%d0%b0%d1%80%d1%82%d0%b0-%d1%81%d0%b0%d0%b9%d1%82%d0%b0-%d0%b4%d0%bb%d1%8f-%d1%82%d0%be%d0%b2%d0%b0%d1%80%d0%be%d0%b2-wp-e-commerce\/"},"modified":"2015-10-07T21:05:48","modified_gmt":"2015-10-07T21:05:48","slug":"html-%d0%ba%d0%b0%d1%80%d1%82%d0%b0-%d1%81%d0%b0%d0%b9%d1%82%d0%b0-%d0%b4%d0%bb%d1%8f-%d1%82%d0%be%d0%b2%d0%b0%d1%80%d0%be%d0%b2-wp-e-commerce","status":"publish","type":"topic","link":"https:\/\/ru.wordpress.org\/support\/topic\/html-%d0%ba%d0%b0%d1%80%d1%82%d0%b0-%d1%81%d0%b0%d0%b9%d1%82%d0%b0-%d0%b4%d0%bb%d1%8f-%d1%82%d0%be%d0%b2%d0%b0%d1%80%d0%be%d0%b2-wp-e-commerce\/","title":{"rendered":"HTML-\u043a\u0430\u0440\u0442\u0430 \u0441\u0430\u0439\u0442\u0430 \u0434\u043b\u044f \u0442\u043e\u0432\u0430\u0440\u043e\u0432 WP e-Commerce"},"content":{"rendered":"<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442, \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0432\u0441\u0435\u0445 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0432 HTML \u043a\u0430\u0440\u0442\u0435 \u0441\u0430\u0439\u0442\u0430, \u0431\u044b\u043b\u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435<\/p>\n<pre><code>&lt;ul&gt;\n&lt;?php\n$terms = get_terms( &#039;wpsc_product_category&#039;, &#039;orderby=name&amp;&#039;);\n\nforeach ($terms as $term) {\n\n  echo &#039;&lt;li&gt;&lt;a href=&quot;&#039; . get_term_link( $term ) . &#039;&quot;&gt;&lt;h3&gt;&#039;.$term-&gt;name.&#039;&lt;\/h3&gt;&lt;\/a&gt;&#039;;\necho &#039;&lt;ul&gt;&#039;;\n\n$args = array(\n&#039;post_type&#039; =&gt; &#039;wpsc-product&#039;,\n&#039;posts_per_page&#039; =&gt; 400,\n&#039;tax_query&#039; =&gt; array( array( &#039;taxonomy&#039; =&gt; &#039;wpsc_product_category&#039;, &#039;field&#039; =&gt; &#039;slug&#039;, &#039;terms&#039; =&gt; $term-&gt;slug ) ) );\n$new = new WP_Query($args);\nwhile ($new-&gt;have_posts()) {\n$new-&gt;the_post();\necho &#039;&lt;li&gt;&lt;a href=&quot;&#039;.get_permalink().&#039;&quot;&gt;&#039;.get_the_title().&#039;&lt;\/a&gt;&lt;\/li&gt;&#039;;\n}\necho &quot;&lt;\/ul&gt;&quot;;\necho &quot;&lt;\/li&gt;&quot;;\n} ?&gt;\n&lt;\/ul&gt;<\/code><\/pre>\n<p>\u041d\u0443\u0436\u043d\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044e \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0441 id 62. \u041f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044b, \u043d\u0435 \u0432\u044b\u0445\u043e\u0434\u0438\u0442. \u0411\u0443\u0434\u0443 \u043e\u0447\u0435\u043d\u044c \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0435\u043d \u0437\u0430 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0443!<\/p>\n<p>get_terms( &#8216;wpsc_product_category&#8217;, &#8216;orderby=name&amp;&#8217;, &#8216;exclude=62&#8217; &#8212; \u043d\u0435 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u0442<\/p>\n<p>&#8216;exclude_wpsc_product_category&#8217; =&gt; array(62),  \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e 62 \u0438\u043b\u0438 &#8217;62&#8217;<br \/>\n&#8216;exclude_product_category&#8217; =&gt; array(62),  \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e 62 \u0438\u043b\u0438 &#8217;62&#8217;<br \/>\n&#8216;exclude&#8217; =&gt; array(62),  \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e 62 \u0438\u043b\u0438 &#8217;62&#8217;<br \/>\n\u0442\u0430\u043a \u0436\u0435 \u043d\u0435 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u0442<\/p>\n","protected":false},"template":"","class_list":["post-187640","topic","type-topic","status-publish","hentry","topic-tag-html-sitemap","topic-tag-wp-ecommerce"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/187640","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\/187640\/revisions"}],"wp:attachment":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=187640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}