{"id":132692,"date":"2010-11-03T14:50:58","date_gmt":"2010-11-03T05:50:58","guid":{"rendered":"https:\/\/ja.wordpress.org\/support\/2010\/11\/03\/%e3%83%9a%e3%83%bc%e3%82%b8%e3%83%b3%e3%82%b0\/"},"modified":"2010-11-03T14:50:58","modified_gmt":"2010-11-03T05:50:58","slug":"%e3%83%9a%e3%83%bc%e3%82%b8%e3%83%b3%e3%82%b0","status":"closed","type":"topic","link":"https:\/\/ja.wordpress.org\/support\/topic\/%e3%83%9a%e3%83%bc%e3%82%b8%e3%83%b3%e3%82%b0\/","title":{"rendered":"\u30da\u30fc\u30b8\u30f3\u30b0"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u3042\u308b\u30da\u30fc\u30b8\u306b\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u306e\u4e00\u89a7\u3092\u8868\u793a\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u30da\u30fc\u30b8\u30f3\u30b0\u3055\u305b\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f5c\u3063\u3066\u30da\u30fc\u30b8\u3067\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30e9\u30b0\u30a4\u30f3WP-PageNavi\u3092\u5165\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u4f7f\u3048\u308c\u3070\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u5358\u306b<\/p>\n<pre><code>&lt;?php if(function_exists(&#039;wp_pagenavi&#039;)) { wp_pagenavi(); } ?&gt;<\/code><\/pre>\n<p>\u3068\u8ffd\u52a0\u3057\u3066\u3082\u30da\u30fc\u30b8\u30f3\u30b0\u3057\u306a\u3044\u3057\u3001\u4ed6\u306b\u3069\u3046\u3044\u3046\u65b9\u6cd5\u3067\u30da\u30fc\u30b8\u30f3\u30b0\u3067\u304d\u308b\u306e\u304b\u308f\u304b\u3089\u305a\u56f0\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ed6\u306b\u3082\u3054\u3061\u3083\u3054\u3061\u3083\u3068\u3084\u3063\u3066\u307f\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u89e3\u6c7a\u305b\u305a\u306b4\u65e5\u305f\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<br \/>\n\u307b\u3093\u3068\u306b\u3059\u307f\u307e\u305b\u3093\u3001\u6559\u3048\u3066\u9802\u3051\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<br \/>\n\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u81f4\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u304b\u3089\u3001\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306f \/%year%\/%category%\/%postname%\/ \u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3061\u3089\u304c\u73fe\u5728\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u3059\u3002<\/p>\n<pre><code>&lt;?php\n\/*\nTemplate Name: Category_Event\n*\/\n\nget_header(); ?&gt;\n&lt;div id=&quot;main&quot;&gt;\n&lt;?php\n\/\/\u904e\u53bb\u958b\u50ac\u30a4\u30d9\u30f3\u30c8\u3092\u964d\u9806\u306b\u53d6\u5f97\n$query = &quot;SELECT pm.meta_value,p.post_title,p.ID&quot;\n. &quot; FROM wp_postmeta AS pm, wp_posts p&quot;\n. &quot; WHERE p.ID = pm.post_id&quot;\n. &quot; AND pm.meta_key = &#039;_EventStartDate&#039;&quot;\n. &quot; AND pm.meta_value &lt;= CURRENT_TIMESTAMP( 0 )&quot;\n. &quot; ORDER BY pm.meta_value DESC&quot;\n;\n\/\/  sql\u5b9f\u884c\n $terms = $wpdb-&gt;get_results($query);\n\/\/  sql\u306e\u30c7\u30fc\u30bf\u3092\u51e6\u7406\n foreach ($terms as $value){\n?&gt;\n     &lt;?php echo the_event_start_date($value-&gt;ID); ?&gt; &lt;a href=&quot;&lt;?php echo get_permalink($value-&gt;ID); ?&gt;&quot;&gt;&lt;?php echo $value-&gt;post_title; ?&gt;&lt;\/a&gt;\n&lt;?php echo get_the_post_thumbnail($value-&gt;ID, &#039;thumbnail&#039;); ?&gt;\n&lt;?php\n }\n?&gt;\n&lt;\/div&gt;\n&lt;?php get_footer(); ?&gt;<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-132692","topic","type-topic","status-closed","hentry","topic-tag-14982"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/132692","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\/132692\/revisions"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=132692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}