{"id":206149,"date":"2015-04-30T11:30:41","date_gmt":"2015-04-30T02:30:41","guid":{"rendered":""},"modified":"2016-07-30T21:07:48","modified_gmt":"2016-07-30T21:07:48","slug":"%e3%82%bf%e3%82%af%e3%82%bd%e3%83%8e%e3%83%9f%e3%83%bc%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%97%e3%81%9f%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ae%e4%b8%80%e8%a6%a7%e3%83%9a%e3%83%bc%e3%82%b8","status":"closed","type":"topic","link":"https:\/\/ja.wordpress.org\/support\/topic\/%e3%82%bf%e3%82%af%e3%82%bd%e3%83%8e%e3%83%9f%e3%83%bc%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%97%e3%81%9f%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ae%e4%b8%80%e8%a6%a7%e3%83%9a%e3%83%bc%e3%82%b8\/","title":{"rendered":"\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3092\u8a2d\u5b9a\u3057\u305f\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u4e00\u89a7\u30da\u30fc\u30b8\u3067\u30da\u30fc\u30b8\u9001\u308a\u3092\u3064\u3051\u305f\u3044"},"content":{"rendered":"<p>\u307e\u305a\u3001\u30da\u30fc\u30b8\u306e\u4f5c\u308a\u65b9\u306b\u3064\u3044\u3066\u306f\u30b9\u30eb\u30fc\u3057\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<br \/>\n\u305f\u3076\u3093\u3001\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u306a\u308a\u3001\u666e\u901a\u306e\u6295\u7a3f\u3068\u30ab\u30c6\u30b4\u30ea\u30fc\u3067\u4f5c\u308b\u306e\u304c\u826f\u3044\u3068\u306f\u601d\u3046\u306e\u3067\u3059\u304c\u3001<br \/>\n\u306a\u305c\u304b\u305d\u3046\u3057\u306a\u304b\u3063\u305f\u3088\u3046\u3067\u2026<\/p>\n<p>\u30ab\u30b9\u30bf\u30e0\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3067\u4f5c\u3063\u305f\u5206\u985e\u3092\u8a2d\u5b9a\u3057\u305f\u56fa\u5b9a\u30da\u30fc\u30b8\u3092\u4e00\u89a7\u8868\u793a\u3055\u305b\u308b\u305f\u3081\u306b\u300ctaxonomy-test.php\u300d\u3092\u4f5c\u3063\u3066\u4e00\u89a7\u8868\u793a\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3061\u306a\u307f\u306b\u4e0b\u8a18\u3092\u4f7f\u3063\u3066\u8868\u793a\u3002<\/p>\n<pre><code>&lt;?php\n\t$myposts = get_posts(&#039;post_type=page&amp;taxonomy=group&amp;term=ranking&amp;orderby=menu_order&amp;order=ASC&amp;posts_per_page=3&#039;);\n\tforeach( $myposts as $post ) : setup_postdata($post);\n?&gt;\n\t\u203b\u8868\u793a\u3055\u305b\u308b\u5185\u5bb9\n&lt;?php endforeach; ?&gt;<\/code><\/pre>\n<p>\u305d\u308c\u306b\u5206\u985e\u3055\u308c\u305f\u30da\u30fc\u30b8\u304c\u5897\u3048\u305f\u6642\u306e\u305f\u3081\u306b\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u305d\u306e\u30da\u30fc\u30b8\u306b\u306f\u3059\u3067\u306b\u3001\u4e0b\u8a18\u306e\u30bd\u30fc\u30b9\u3092\u4f7f\u3063\u305f\u3082\u306e\u304c\u3042\u308a\u3001\u305d\u308c\u3092\u305d\u306e\u307e\u307e\u4f7f\u3048\u306a\u3044\u304b\u3068\u601d\u3063\u3066\u3084\u3063\u3066\u307f\u305f\u3089\u3060\u3081\u3067\u3057\u305f\u3002<\/p>\n<pre><code>function my_paginate(){\n\tglobal $wp_query, $paged;\n\n\t$p_base = get_pagenum_link(1);\n\t$p_format = &#039;page\/%#%&#039;;\n\n\t\/\/?\u306e\u6709\u7121\u78ba\u8a8d\u3001\u6709\u308b\u5834\u5408\u306f\u5834\u6240\u3092\u7279\u5b9a\n\tif($word = strpos($p_base, &#039;?&#039;)){\n\t\/\/?\u304c\u3042\u308b\u5834\u5408\uff08\u691c\u7d22\u7d50\u679c\uff09\n\t\t$p_base = get_option(home).(substr(get_option(home), -1 ,1) === &#039;\/&#039; ? &#039;&#039; : &#039;\/&#039;)\n\t\t\t.&#039;%_%&#039;.substr($p_base, $word);\n\t} else{\n\t\/\/?\u304c\u7121\u3044\u5834\u5408\uff08\u30ab\u30c6\u30b4\u30ea\u3001\u30bf\u30b0\u7b49\uff09\n\t\t$p_base .= (substr($p_base, -1 ,1) === &#039;\/&#039; ? &#039;&#039; : &#039;\/&#039;) .&#039;%_%&#039;;\n\t}\n\n \techo paginate_links(array(\n\t\t&#039;base&#039; =&gt; $p_base,\n\t\t&#039;format&#039; =&gt; $p_format,\n\t\t&#039;total&#039; =&gt; $wp_query-&gt;max_num_pages,\n\t\t&#039;current&#039; =&gt; ($paged ? $paged : 1),\n\t));\n}<\/code><\/pre>\n<p>\u30da\u30fc\u30b8\u9001\u308a\u3092\u8868\u793a\u3057\u305f\u3044\u3068\u3053\u308d\u306b\u4e0b\u8a18\u3092\u8a18\u8ff0\u3002<br \/>\n<code>&lt;?php my_paginate(); ?&gt;<\/code><\/p>\n<p>\u73fe\u72b6\u3001\u305d\u306e\u56fa\u5b9a\u30da\u30fc\u30b8\u306f5\u3064\u3042\u308a\u307e\u3059\u3002<br \/>\n\u305d\u306e\u305f\u3081\u8868\u793a\u6570\u30923\u306b\u3057\u3066\u30c6\u30b9\u30c8\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u8868\u793a\u306f3\u4ef6\u306a\u306e\u306b\u3001<br \/>\n\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u304c5\u30da\u30fc\u30b8\u5206\u8868\u793a\u3055\u308c\u30012\u30da\u30fc\u30b8\u4ee5\u964d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3082\u3001<br \/>\n1\u30da\u30fc\u30b8\u76ee\u306b\u3042\u308b3\u4ef6\u304c\u8868\u793a\u3055\u308c\u308b\u3060\u3051\u3002<\/p>\n<p>\u3082\u3057\u304b\u3057\u3066\u56fa\u5b9a\u30da\u30fc\u30b8\u304c\u5897\u3048\u305f\u3089\u3053\u306e\u6570\u5b57\u3082\u5897\u3048\u308b\u306e\u304b\u3068\u601d\u3063\u3066\u3001<br \/>\n\u4e00\u3064\u8ffd\u52a0\u3057\u305f\u3089\u30015\u3067\u306f\u306a\u304f6\u30da\u30fc\u30b8\u5206\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u30da\u30fc\u30b8\u9001\u308a\u304c\u3061\u3083\u3093\u3068\u3055\u308c\u3066\u304a\u3089\u305a\u3001\u3057\u304b\u3082\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u6570\u3060\u3051\u30da\u30fc\u30b8\u6570\u304c\u8868\u793a\u3055\u308c\u308b\u72b6\u6cc1\u306b\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4e0a\u8a18\u306e\u30bd\u30fc\u30b9\u3092\u89e6\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3067\u304d\u308b\u624b\u6bb5\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u3087\u3046\u304b\uff1f<br \/>\n\u6628\u65e5\u304b\u3089\u305a\u3063\u3068\u89e6\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3044\u3063\u3053\u3046\u306b\u89e3\u6c7a\u3067\u304d\u305a\u306b\u304a\u308a\u307e\u3059\u3002<br \/>\n\u3054\u6559\u6388\u3044\u305f\u3060\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n","protected":false},"template":"","class_list":["post-206149","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/206149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/206149\/revisions"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=206149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}