{"id":160464,"date":"2013-04-27T06:01:28","date_gmt":"2013-04-26T21:01:28","guid":{"rendered":"https:\/\/ja.wordpress.org\/support\/2013\/04\/27\/wp-pagenavi%e3%82%92%e8%a8%ad%e7%bd%ae%e3%81%99%e3%82%8b%e3%81%a82%e3%83%9a%e3%83%bc%e3%82%b8%e7%9b%ae%e3%81%8cindex%e3%81%ab%e3%81%aa%e3%82%8b\/"},"modified":"2013-04-27T06:01:28","modified_gmt":"2013-04-26T21:01:28","slug":"wp-pagenavi%e3%82%92%e8%a8%ad%e7%bd%ae%e3%81%99%e3%82%8b%e3%81%a82%e3%83%9a%e3%83%bc%e3%82%b8%e7%9b%ae%e3%81%8cindex%e3%81%ab%e3%81%aa%e3%82%8b","status":"closed","type":"topic","link":"https:\/\/ja.wordpress.org\/support\/topic\/wp-pagenavi%e3%82%92%e8%a8%ad%e7%bd%ae%e3%81%99%e3%82%8b%e3%81%a82%e3%83%9a%e3%83%bc%e3%82%b8%e7%9b%ae%e3%81%8cindex%e3%81%ab%e3%81%aa%e3%82%8b\/","title":{"rendered":"WP-PageNavi\u3092\u8a2d\u7f6e\u3059\u308b\u30682\u30da\u30fc\u30b8\u76ee\u304cindex\u306b\u306a\u308b"},"content":{"rendered":"<p>\u3044\u3064\u3082\u304a\u4e16\u8a71\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u73fe\u5728\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u306e\u4e00\u89a7\u3092\u500b\u5225\u30da\u30fc\u30b8\u306b\u8868\u793a\u3055\u305b\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3053\u306e\u500b\u5225\u30da\u30fc\u30b8\u306fdiscography.php\u3068\u3057\u3066<br \/>\n\u500b\u5225\u30da\u30fc\u30b8\u306e\u6587\u7ae0(\u30b5\u30d6\u30eb\u30fc\u30d7)<br \/>\n\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f(\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7)<br \/>\n\u3068\u3044\u3046\u30da\u30fc\u30b8\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u306fCustom Post Type UI\u3067\u6307\u5b9a\u3057\u30b9\u30e9\u30c3\u30b0\u540d\u3068\u500b\u5225\u30da\u30fc\u30b8\u306e\u30bf\u30a4\u30c8\u30eb\u540d\u306f\u5909\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u691c\u7d22\u3057\u3066\u8272\u3005\u8abf\u3079\u3066\u8a66\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u6700\u521d\u306f2\u30da\u30fc\u30b8\u76ee\u3092\u8868\u793a\u3059\u308b\u3068404\u3067\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u306a\u3057(\u30b9\u30e9\u30c3\u30b0\u540d\u3068\u500b\u5225\u30da\u30fc\u30b8\u306e\u6587\u7ae0\u306e\u30bf\u30a4\u30c8\u30eb\u304c\u4e00\u7dd2\u3067\u3057\u305f)\u3001\u73fe\u5728\u306findex\u306b\u306a\u308aURL\u306f<br \/>\n\/\/\u25cb\u25cb\/page\/2\/<br \/>\n\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code>&lt;div id=&quot;post-main&quot; class=&quot;mt0 mb0 ml10 mr10 clearfix&quot;&gt;\n&lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;\/h2&gt;\n\u3000\u3000&lt;div class=&quot;column right mt20&quot;&gt;\n      &lt;article class=&quot;content frame-box p10&quot;&gt;\n        &lt;?php $loop = new WP_Query(&#039;page_id=&#039;.$post-&gt;ID); ?&gt;\n\u3000\u3000\u3000\u3000&lt;?php while ( $loop-&gt;have_posts() ) : $loop-&gt;the_post();\n\t\/* \u30eb\u30fc\u30d7\u958b\u59cb *\/ ?&gt;\n\t&lt;div class=&quot;post&quot;&gt;\n\t\t&lt;?php the_content(); ?&gt;\n\t&lt;\/div&gt;\n\u3000\u3000\u3000\u3000&lt;?php endwhile; ?&gt;\n        &lt;?php wp_reset_query(); ?&gt;\n\n        &lt;?php\n        $paged = get_query_var( &#039;paged&#039; );\n\u3000\u3000\u3000\u3000if ( ! $paged ) {\n\u3000\u3000\u3000\u3000$paged = 1;\n\u3000\u3000\u3000\u3000}\n\u3000\u3000\u3000\u3000$args = array(\n     \u3000&#039;post_type&#039; =&gt; &#039;disc&#039;, \/* \u6295\u7a3f\u30bf\u30a4\u30d7\u3092\u6307\u5b9a *\/\n     \u3000&#039;paged&#039; =&gt; $paged,\n\u3000\u3000\u3000\u3000); ?&gt;\n\u3000\u3000&lt;?php query_posts( $args ); ?&gt;\n     &lt;?php if (have_posts()) : ?&gt;\n     &lt;?php while (have_posts()) : the_post();\n\t\/* \u30eb\u30fc\u30d7\u958b\u59cb *\/ ?&gt;\n    &lt;div class=&quot;post clearfix&quot;&gt;\n    \t&lt;h3&gt;&lt;?php the_title(); ?&gt;&lt;\/h3&gt;\n    \t&lt;?php the_content(); ?&gt;\n    &lt;\/div&gt;\n\t&lt;?php endwhile; ?&gt;\n    &lt;\/article&gt;\n\n    &lt;!-- pager --&gt;\n    &lt;?php if(function_exists(&#039;wp_pagenavi&#039;)) wp_pagenavi(); ?&gt;\n    &lt;!-- \/pager --&gt;\n    &lt;?php wp_reset_query(); ?&gt;\n&lt;?php else : ?&gt;\n\n    &lt;div class=&quot;post&quot;&gt;\n\t\t&lt;h3&gt;\u8a18\u4e8b\u304c\u3042\u308a\u307e\u305b\u3093&lt;\/h3&gt;\n\t\t&lt;p&gt;\u8868\u793a\u3059\u308b\u8a18\u4e8b\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002&lt;\/p&gt;\n    &lt;\/div&gt;\n&lt;?php endif;?&gt;\n    &lt;\/div&gt;<\/code><\/pre>\n<p>\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n$query_string\u3082\u4f7f\u3063\u3066\u307f\u305f\u306e\u3067\u3059\u304c<br \/>\n\u300c\u8a18\u4e8b\u304c\u3042\u308a\u307e\u305b\u3093\u300d\u3068\u30e1\u30a4\u30f3\u30eb\u30fc\u30d7\u306e\u90e8\u5206\u306b\u3067\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u3054\u6559\u6388\u304a\u9858\u3044\u81f4\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"template":"","class_list":["post-160464","topic","type-topic","status-closed","hentry","topic-tag-20313","topic-tag-index","topic-tag-wp-pagenavi"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/160464","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\/160464\/revisions"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=160464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}