{"id":11660489,"date":"2019-11-17T11:57:42","date_gmt":"2019-11-17T02:57:42","guid":{"rendered":"https:\/\/ja.wordpress.org\/support\/topic\/%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e8%a8%98%e4%ba%8b%e3%80%80%e4%b8%80%e8%a6%a7%e3%83%9a%e3%83%bc%e3%82%b8%e3%82%92%e4%bd%9c%e6%88%90%e3%81%97%e3%81%9f%e3%81%84\/"},"modified":"2019-11-17T11:57:42","modified_gmt":"2019-11-17T02:57:42","slug":"%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e8%a8%98%e4%ba%8b%e3%80%80%e4%b8%80%e8%a6%a7%e3%83%9a%e3%83%bc%e3%82%b8%e3%82%92%e4%bd%9c%e6%88%90%e3%81%97%e3%81%9f%e3%81%84","status":"publish","type":"topic","link":"https:\/\/ja.wordpress.org\/support\/topic\/%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e8%a8%98%e4%ba%8b%e3%80%80%e4%b8%80%e8%a6%a7%e3%83%9a%e3%83%bc%e3%82%b8%e3%82%92%e4%bd%9c%e6%88%90%e3%81%97%e3%81%9f%e3%81%84\/","title":{"rendered":"\u30ab\u30c6\u30b4\u30ea\u30fc\u5225\u8a18\u4e8b\u3000\u4e00\u89a7\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u305f\u3044"},"content":{"rendered":"<p>\u304a\u4e16\u8a71\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u73fe\u5728\u3001\u30ab\u30c6\u30b4\u30ea\u30fc\u5225\u306e\u8a18\u4e8b\u4e00\u89a7\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u4e0a\u624b\u304f\u3044\u304d\u307e\u305b\u3093\u3002<br \/>\n\u3054\u6559\u6388\u3044\u305f\u3060\u3051\u308b\u3068\u5e78\u3044\u3067\u3059\u3002<\/p>\n<p>\u5236\u4f5c\u3057\u305f\u3044\u30da\u30fc\u30b8\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u5185\u5bb9\u3067\u3059\u3002<\/p>\n<p>\u30fb\u30ab\u30c6\u30b4\u30ea\u30fc\u5225\u306e\u8a18\u4e8b\u4e00\u89a7\u30da\u30fc\u30b8\u3092\u4f5c\u6210<br \/>\n\u30fb\u30ab\u30c6\u30b4\u30ea\u30fc\u306f\u3001\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u5185\u3067\u30ab\u30c6\u30b4\u30ea\u30fc\u5225\u306b\u5206\u304b\u308c\u3066\u3044\u308b\uff08\u89aa\u3001\u5b50\u306e2\u968e\u5c64\uff09<\/p>\n<p>\u73fe\u5728\u4e0b\u8a18\u306e\u69d8\u306b\u3057\u3066\u30ab\u30c6\u30b4\u30ea\u30fc\u5206\u3051\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u4e0a\u624b\u304f\u3044\u304d\u307e\u305b\u3093\u3002<\/p>\n<pre><code>\n&lt;main class=&quot;main\n bg_beige&quot;&gt;\n  &lt;div class=&quot;index-newproperty__category&quot;&gt;\n    \u30ab\u30c6\u30b4\u30ea\n    &lt;a href=&quot;#&quot; class=&quot;index-newproperty__categorybtn btn__rent&quot;&gt;\u8cc3\u8cb8&lt;\/a&gt;\n    &lt;a href=&quot;#&quot; class=&quot;index-newproperty__categorybtn btn__sale&quot;&gt;\u58f2\u8cb7&lt;\/a&gt;\n  &lt;\/div&gt;\n  &lt;div class=&quot;index-newproperty__box&quot;&gt;\n  &lt;?php\n  $paged = (int) get_query_var(&#039;paged&#039;);\n  $args = array(\n    &#039;posts_per_page&#039; =&gt; 6,\n    &#039;paged&#039; =&gt; $paged,\n    &#039;orderby&#039; =&gt; &#039;post_date&#039;,\n    &#039;order&#039; =&gt; &#039;DESC&#039;,\n    &#039;post_type&#039; =&gt; &#039;property&#039;,\n    &#039;terms&#039;=&gt; &#039;sale&#039;,\n    &#039;post_status&#039; =&gt; &#039;publish&#039;\n  );\n\n  $the_query = new WP_Query($args);\n  if ( $the_query-&gt;have_posts() ) :\n    while ( $the_query-&gt;have_posts() ) : $the_query-&gt;the_post();\n  ?&gt;\n  &lt;?php\n    $cat = get_the_category();\n    $cat_slug  = $cat[0]-&gt;category_nicename;\n  ?&gt;\n\n              &lt;article class=&quot;index-newproperty measures bg_white &lt;?php echo $cat_slug ?&gt;&quot;&gt;\n                &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;\n                  &lt;img class=&quot;news__article__img&quot; src=&quot;&lt;?php the_post_thumbnail_url(); ?&gt;&quot; height=&quot;250px&quot;&gt;\n                  &lt;div class=&quot;index-property__content-text bg_white&quot;&gt;\n                    &lt;h4 class=&quot;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/h4&gt;\n                    &lt;time datetime=&quot;&lt;?php the_time(&#039;Y-m-d&#039;); ?&gt;&quot;&gt;&lt;?php the_time(&#039;Y.m.d&#039;); ?&gt;&lt;\/time&gt;\n                    &lt;p&gt;&lt;?php the_excerpt(&#039;Read more&#039;); ?&gt;&lt;\/p&gt;\n                    &lt;p class=&quot;index-property__content-more&quot;&gt;MORE&lt;\/p&gt;\n                  &lt;\/div&gt;\n                &lt;\/a&gt;\n              &lt;\/article&gt;\n\n  &lt;?php endwhile; endif; ?&gt;\n\n  &lt;div class=&quot;pagination&quot;&gt;\n  &lt;?php\n  if ($the_query-&gt;max_num_pages &gt; 1) {\n    echo paginate_links(array(\n      &#039;base&#039; =&gt; get_pagenum_link(1) . &#039;%_%&#039;,\n      &#039;category_name&#039; =&gt; &#039;rent&#039;,\n      &#039;format&#039; =&gt; &#039;page\/%#%\/&#039;,\n      &#039;current&#039; =&gt; max(1, $paged),\n      &#039;total&#039; =&gt; $the_query-&gt;max_num_pages,\n      &#039;prev_text&#039; =&gt; &#039;&#039;,\n      &#039;next_text&#039; =&gt; &#039;&#039;\n    ));\n  }\n  ?&gt;\n  &lt;\/div&gt;\n<\/code><\/pre>\n<p>\u73fe\u5728\u306e\u8868\u793a\u306f\u3001\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u5185\u306e\u8a18\u4e8b\u4e00\u89a7\u304c\u51fa\u3066\u3057\u307e\u3044\u3001\u5e0c\u671b\u3059\u308b\u4ee5\u5916\u306e\u30ab\u30c6\u30b4\u30ea\u30fc\u306e\u8a18\u4e8b\u3082\u51fa\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u72b6\u614b\u3067\u3059\u3002<br \/>\n\u4e00\u89a7\u3067\u8868\u793a\u3057\u305f\u3044\u30ab\u30c6\u30b4\u30ea\u30fc\u306e\u30b9\u30e9\u30c3\u30b0\u306f\u3001&#8221;sale&#8221;\u3067\u3059\u3002<\/p>\n<p>\u8aac\u660e\u4e0d\u8db3\u306a\u90e8\u5206\u3082\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u304a\u52a9\u3051\u3044\u305f\u3060\u3051\u308b\u3068\u5e78\u3044\u3067\u3059\u3002<br \/>\n\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"template":"","class_list":["post-11660489","topic","type-topic","status-publish","hentry","topic-tag-15293"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11660489","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\/11660489\/revisions"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11660489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}