{"id":3381,"date":"2022-11-16T09:32:15","date_gmt":"2022-11-16T00:32:15","guid":{"rendered":"https:\/\/apr20.net\/?p=3381"},"modified":"2022-11-16T09:32:15","modified_gmt":"2022-11-16T00:32:15","slug":"wordpress-%e7%8b%ac%e8%87%aa%e3%83%86%e3%83%b3%e3%83%97%e3%83%ac%e3%83%bc%e3%83%88%e3%81%a7%e3%82%88%e3%81%8f%e4%bd%bf%e3%81%86%e9%96%a2%e6%95%b0","status":"publish","type":"post","link":"https:\/\/apr20.net\/?p=3381","title":{"rendered":"WordPress \u72ec\u81ea\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u3088\u304f\u4f7f\u3046\u95a2\u6570\u306a\u3069"},"content":{"rendered":"<h2>\u6295\u7a3f\u95a2\u9023<\/h2>\n<p>\u30da\u30fc\u30b8ID \u53d6\u5f97\u30fb\u8868\u793a<br \/>\n[php]&lt;?php $post_id = get_the_ID ( ) ;<br \/>\necho $post_id; ?&gt;[\/php]<br \/>\n\u30ea\u30f3\u30af\u53d6\u5f97\u30fb\u8868\u793a<br \/>\n[php]<br \/>\n&lt;a href=&quot;&lt;?php echo get_permalink( 99 ); ?&gt;&quot;&gt;\u30ea\u30f3\u30af\u30c6\u30ad\u30b9\u30c8&lt;\/a&gt;<br \/>\n[\/php]<\/p>\n<p>\u89aa\u30da\u30fc\u30b8\u306e\u60c5\u5831\u3092\u53d6\u5f97\u30fb\u8868\u793a<br \/>\n[php]&lt;?php<br \/>\n  $parent_id = $post-&gt;post_parent; \/\/\u89aa\u30da\u30fc\u30b8\u306eID\u3092\u53d6\u5f97<br \/>\n  echo get_post($parent_id)-&gt;post_name; \/\/\u30b9\u30e9\u30c3\u30b0<br \/>\n  echo get_post($parent_id)-&gt;post_title; \/\/\u30bf\u30a4\u30c8\u30eb<br \/>\n  echo get_post($parent_id)-&gt;post_date; \/\/\u4f5c\u6210\u65e5<br \/>\n  echo get_post($parent_id)-&gt;post_excerpt; \/\/\u629c\u7c8b<br \/>\n  echo get_post($parent_id)-&gt;post_content; \/\/\u672c\u6587<br \/>\n?&gt;[\/php]<br \/>\n[php]&lt;?php<br \/>\n\/\/\u516c\u958b\u65e5\u6642<br \/>\nthe_time(&quot;Y\u5e74m\u6708d\u65e5&quot;); ?&gt;<br \/>\n[\/php]<\/p>\n<h2>\u30ab\u30c6\u30b4\u30ea\u95a2\u9023<\/h2>\n<h3>\u30ab\u30c6\u30b4\u30ea\u60c5\u5831\u53d6\u5f97<\/h3>\n<p>\u30ab\u30c6\u30b4\u30eaID\u3001\u30b9\u30e9\u30c3\u30b0\u3001\u30ab\u30c6\u30b4\u30ea\u540d\u306a\u3069\u3001\u30ab\u30c6\u30b4\u30ea\u60c5\u5831\u3092\u307e\u3068\u3081\u3066\u53d6\u5f97<br \/>\n[php]$cat = get_the_category();<br \/>\n$cat = $cat[ 0 ];<\/p>\n<p>\/\/\u53d6\u5f97\u60c5\u5831\u3092\u8868\u793a<br \/>\nprint_r($cat);<\/p>\n<p>\/\/\u30ab\u30c6\u30b4\u30ea\u540d\u8868\u793a<br \/>\necho $cat-&gt;name;<\/p>\n<p>\/\/\u30ab\u30c6\u30b4\u30ea\u30ea\u30f3\u30afURL<br \/>\necho get_category_link( $cat-&gt;term_id )<br \/>\n[\/php]<\/p>\n<h3>\u30ab\u30c6\u30b4\u30ea\u8aac\u660e\u6587\u8868\u793a<\/h3>\n<p>[php]&lt;?php<br \/>\n  if( category_description() ) {<br \/>\n    echo category_description();<br \/>\n  }<br \/>\n?&gt;[\/php]<\/p>\n<h3>\u30ab\u30c6\u30b4\u30eaID\u53d6\u5f97<\/h3>\n<p>[php]<br \/>\n\/\/\u30ab\u30c6\u30b4\u30eaID\u3092\u53d6\u5f97\u3059\u308b<br \/>\n$cat_id = get_query_var( &#8216;cat&#8217; );[\/php]<\/p>\n<h3>\u30ab\u30c6\u30b4\u30ea\u30ea\u30f3\u30afURL\u3092\u53d6\u5f97<\/h3>\n<p>[php]$url = get_category_link( \u30ab\u30c6\u30b4\u30eaID );[\/php]<br \/>\n\u30ea\u30f3\u30af\u3092\u8a2d\u5b9a<br \/>\n[php]&lt;a href=&quot;&lt;?php echo get_category_link( 56 ); ?&gt;&quot;&gt;\u59f6\u826f\u5e02&lt;\/a&gt;[\/php]<\/p>\n<h3>\u89aa\u30ab\u30c6\u30b4\u30ea\u304b\u3001\u305d\u306e\u89aa\u306e\u5b50\u30ab\u30c6\u30b4\u30ea\u306b\u5c5e\u3059\u308b\u5834\u5408\u306e\u5206\u5c90<\/h3>\n<p>functions.php\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18<br \/>\n[php]\/*\u7279\u5b9a\u306e\u30ab\u30c6\u30b4\u30ea\u304b\u305d\u306e\u5b50\u30ab\u30c6\u30b4\u30ea\u306b\u5206\u985e\u3055\u308c\u305f\u6295\u7a3f\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b*\/<br \/>\nfunction post_is_in_descendant_category( $cats, $_post = null ){<br \/>\nforeach ( (array) $cats as $cat ) {<br \/>\n$descendants = get_term_children( (int) $cat, &#8216;category&#8217;);<br \/>\nif ( $descendants &amp;&amp; in_category( $descendants, $_post ) )<br \/>\nreturn true;<br \/>\n}<br \/>\nreturn false;<br \/>\n}[\/php]<br \/>\n\u30ab\u30c6\u30b4\u30ea2\u304b\u305d\u306e\u5b50\u30ab\u30c6\u30b4\u30ea\u306b\u5c5e\u3059\u308b\u5834\u5408\u306b\u8868\u793a\u3055\u305b\u308b<br \/>\n[php]&lt;?php if( in_category(2) || post_is_in_descendant_category(2)):?&gt;<br \/>\n\u3053\u3053\u306b\u8868\u793a\u5185\u5bb9<br \/>\n\t  &lt;?php endif; ?&gt;[\/php]<\/p>\n<h2>\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u95a2\u9023<\/h2>\n<p>[php]&lt;?php<br \/>\n\/\/\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u3092\u53d6\u5f97\u30fb\u8868\u793a<br \/>\necho get_post_meta( $post-&gt;ID , &#8216;price&#8217; , true );<br \/>\n?&gt;[\/php]<\/p>\n<h2>\u753b\u50cf\u95a2\u9023<\/h2>\n<p>[php]&lt;img src=&quot;&lt;?php echo get_stylesheet_directory_uri(); ?&gt;\/images\/path.jpg&quot;&gt;[\/php]<\/p>\n<h3>\u753b\u9762\u30b5\u30a4\u30ba\u3067\u753b\u50cf\u5207\u308a\u66ff\u3048<\/h3>\n<p>    [php]&lt;picture&gt;<br \/>\n      &lt;source media=&quot;(max-width: 767px)&quot; srcset=&quot;&lt;?php echo get_stylesheet_directory_uri(); ?&gt;\/images\/mainImg@2x.jpg&quot;&gt;<br \/>\n      &lt;img src=&quot;&lt;?php echo get_stylesheet_directory_uri(); ?&gt;\/images\/mainImg.jpg&quot;&gt;<br \/>\n    &lt;\/picture&gt;[\/php]<\/p>\n<h2>\u6587\u5b57\u95a2\u9023<\/h2>\n<h3>\u53e5\u8aad\u70b9\u3084\u30ab\u30c3\u30b3\u306a\u3069\u3092\u6587\u5b57\u8a70\u3081\u30fb\u30ab\u30fc\u30cb\u30f3\u30b0<\/h3>\n<p>[php]font-feature-settings: &quot;palt&quot;;[\/php]<\/p>\n<h3>\u65e5\u672c\u8a9e\u306e\u81ea\u52d5\u6539\u884c\u3092\u3044\u3044\u611f\u3058\u306b\u3059\u308bCSS<\/h3>\n<p>[php]<br \/>\noverflow-wrap: break-word;<br \/>\nword-break: keep-all;<br \/>\n[\/php]<\/p>\n<p>[php]&lt;?php<br \/>\n\/\/\u629c\u7c8b\u6587\u5b57\u6570\u5236\u9650<br \/>\necho mb_substr( get_the_excerpt(), 0, 80 ) . &#8216; &#8230;&#8217;; ?&gt;[\/php]<\/p>\n<p>[php]<br \/>\n\/\/function.php\u3067\u8a2d\u5b9a\u3059\u308b\u5834\u5408<br \/>\nfunction twpp_change_excerpt_length( $length ) {<br \/>\n  return 50;<br \/>\n}<br \/>\nadd_filter( &#8216;excerpt_length&#8217;, &#8216;twpp_change_excerpt_length&#8217;, 999 );[\/php]<\/p>\n<h2>\u95a2\u6570\u95a2\u9023<\/h2>\n<h3>\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0<\/h3>\n<p>[php]&lt;?php echo do_shortcode(&#8216;[\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9]&#8217;); ?&gt;[\/php]<\/p>\n<h2>PHP\u95a2\u9023<\/h2>\n<h3>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u5185\u3067\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b<\/h3>\n<p>[php]<br \/>\n&lt;?php<br \/>\n  echo do_shortcode(&#8216;[\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9]&#8217;);<br \/>\n?&gt;[\/php]<\/p>\n<h3>\u6642\u9593\u6307\u5b9a\u3057\u3066\u516c\u958b\u30fb\u975e\u516c\u958b\u306e\u30bf\u30a4\u30de\u30fc\u3092\u8a2d\u5b9a\u3059\u308b<\/h3>\n<p> [php]&lt;?php date_default_timezone_set(&#8216;Asia\/Tokyo&#8217;); \/\/\u6771\u4eac\u6642\u9593\u306b\u3059\u308b?&gt;<br \/>\n\t\t\t  &lt;?php echo date(&#8216;Y-m-d H:i:s&#8217;); ?&gt;<br \/>\n&lt;?php if (date(&#8216;Y-m-d H:i:s&#8217;) &gt; &#8216;2023-02-04 20:00:00&#8217;) :?&gt;<br \/>\n&lt;!&#8211; \u6307\u5b9a\u65e5\u6642\u3092\u8d85\u3048\u305f\u5834\u5408 \u516c\u958b\u3059\u308b\u5185\u5bb9 &#8211;&gt;<br \/>\n&lt;?php else:?&gt;<br \/>\n&lt;!&#8211; \u305d\u306e\u4ed6\u306e\u5834\u5408 &#8211;&gt;<br \/>\n&lt;?php endif;?&gt;[\/php]<\/p>\n<h2>CSS\u95a2\u9023<\/h2>\n<h3>body\u30bf\u30b0\u306b\u4efb\u610f\u306e\u30af\u30e9\u30b9\u3092\u3064\u3051\u308b<\/h3>\n<p>[php]<br \/>\n&lt;?php<br \/>\n\/\/front_page\u4ee5\u5916\u306b .not_home \u30af\u30e9\u30b9\u3092\u3064\u3051\u308b<br \/>\nif( is_front_page()){<br \/>\n\t$body_class = &quot;&quot;;<br \/>\n}else{<br \/>\n\t$body_class = &quot;not_home&quot;;<br \/>\n} ?&gt;<\/p>\n<p>&lt;body &lt;?php body_class( $body_class ); ?&gt;&gt;<\/p>\n<p>[\/php]<br \/>\nGoogle reCAPTCHA \u30ed\u30b4\u6d88\u3059<br \/>\n[php].grecaptcha-badge { visibility: hidden; }[\/php]<\/p>\n<p>\u5358\u8a9e\u306e\u9014\u4e2d\u3067\u6539\u884c\u3057\u306a\u3044<br \/>\n[php]<br \/>\n\/* \u65e5\u672c\u8a9e\u306e\u6539\u884c\u8a2d\u5b9a *\/<br \/>\noverflow-wrap: break-word;<br \/>\nword-break: keep-all;<\/p>\n<p>\/* \u30c6\u30ad\u30b9\u30c8\u306b\u30de\u30fc\u30ab\u30fc\u3092\u3072\u304f *\/<br \/>\n background: linear-gradient(transparent 50%, #fff100 0%); line-height: 260%;<br \/>\n\/* \u30c9\u30ed\u30c3\u30d7\u30b7\u30e3\u30c9\u30a6 \u5f71\u3092\u3064\u3051\u308b *\/<br \/>\nfilter: drop-shadow( 6px 4px 0 #ddd);<\/p>\n<p>\/* \u80cc\u666f\u753b\u50cf\u3092\u8907\u6570\u8a2d\u7f6e *\/<br \/>\nbackground-image: url(images\/reasonBg01.png), url(images\/reasonBg02.png);<br \/>\nbackground-position: top 40% left 0, top 40px right 0;<\/p>\n<p>\/* reCAPTCHA\uff08\u30ea\u30ad\u30e3\u30d7\u30c1\u30e3\uff09\u3092\u975e\u8868\u793a\u306b\u3059\u308b *\/<br \/>\n.grecaptcha-badge { visibility: hidden; }<\/p>\n<p>\/* flex gap 10px\u306e\u5834\u5408\u306e\u5b50\u8981\u7d20\u306e\u30b5\u30a4\u30ba\u8a2d\u5b9a*\/<br \/>\nwidth: calc((100% &#8211; 10px) \/2);<br \/>\n[\/php]<\/p>\n<h2>\u30c4\u30fc\u30eb\u95a2\u9023<\/h2>\n<h3>CSS\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3 \u30b8\u30a7\u30cd\u30ec\u30fc\u30bf<\/h3>\n<p><a href=\"https:\/\/cssgradient.io\/\" rel=\"noopener\" target=\"_blank\">CSS Gradient<\/a><\/p>\n<h3>CSS\u3084SCSS\u306e\u6574\u5f62<\/h3>\n<p><a href=\"https:\/\/lab.syncer.jp\/Tool\/CSS-PrettyPrint\/\" rel=\"noopener\" target=\"_blank\">https:\/\/lab.syncer.jp\/Tool\/CSS-PrettyPrint\/<\/a><\/p>\n<h3>CSS\u3092SCSS\u3084SCSS\u306b\u5909\u63db<\/h3>\n<p><a href=\"http:\/\/css2sass.herokuapp.com\/\" rel=\"noopener\" target=\"_blank\">CSS 2 SASS\/SCSS CONVERTER<\/a><\/p>\n<h3>LINE\u306eOGP\u8a2d\u5b9a\u3092\u66f4\u65b0\u3059\u308b<\/h3>\n<p><a href=\"https:\/\/poker.line.naver.jp\/\" rel=\"noopener\" target=\"_blank\">https:\/\/poker.line.naver.jp\/<\/a><\/p>\n<h3>css\u306efilter\u3084transform\u306e\u8a2d\u5b9a<\/h3>\n<p><a href=\"http:\/\/ds-overdesign.com\/filter\/\" rel=\"noopener\" target=\"_blank\">http:\/\/ds-overdesign.com\/filter\/<\/a><\/p>\n<h2>jQuery\u95a2\u9023<\/h2>\n<h3>\u30b9\u30af\u30ed\u30fc\u30eb\u304c\u6307\u5b9a\u4f4d\u7f6e\u3092\u8d85\u3048\u305f\u3089\u8868\u793a<\/h3>\n<p>[php]\/\/\u30b9\u30af\u30ed\u30fc\u30eb\u304c\u6307\u5b9a\u4f4d\u7f6e\u3092\u8d85\u3048\u305f\u3089\u8868\u793a<br \/>\n$(function() {<br \/>\n\tvar topBtn = $(&#8216;#page-top&#8217;);<br \/>\n\ttopBtn.hide();<\/p>\n<p>\t$(window).scroll(function () {<br \/>\n\t\tif ($(this).scrollTop() &gt; 500) {<br \/>\n\t\t\ttopBtn.fadeIn();<br \/>\n\t\t} else {<br \/>\n\t\t\ttopBtn.fadeOut();<br \/>\n\t\t}<br \/>\n\t});<\/p>\n<p>    topBtn.click(function () {<br \/>\n\t\t$(&#8216;body,html&#8217;).animate({<br \/>\n\t\t\tscrollTop: 0<br \/>\n\t\t}, 500);<br \/>\n\t\treturn false;<br \/>\n    });<br \/>\n});[\/php]<\/p>\n<h3>window\u3084div\u8981\u7d20\u306e\u9ad8\u3055\u3092\u53d6\u5f97<\/h3>\n<p>[php]<br \/>\n\/\/window\u3084div\u8981\u7d20\u306e\u9ad8\u3055\u3092\u53d6\u5f97\u3057\u3066\u3001\u307b\u304b\u306e\u8981\u7d20\u306b\u53cd\u6620\u3055\u305b\u308b<br \/>\n&lt;script&gt;<br \/>\n$(window).on(&#8216;load&#8217;, function() {<br \/>\n    var header_height = $(&#8216;#header&#8217;).outerHeight();<br \/>\n    console.log(header_height);<\/p>\n<p>    var win_height = $(window).height()  \/\/ \u753b\u9762\u306e\u9ad8\u3055\u3092px\u3067\u53d6\u5f97<br \/>\n    console.log(win_height);<\/p>\n<p>    $(&#8216;#mainImg&#8217;).css(&#8216;height&#8217;,win_height);<br \/>\n});<\/p>\n<p>&lt;\/script&gt; [\/php]<\/p>\n<h3>window\u30b5\u30a4\u30ba\u3067\u5834\u5408\u5206\u3051<\/h3>\n<p>[php]&lt;script&gt;<br \/>\nvar windowSize = $(window).width();<br \/>\n    if (windowSize &gt; 780) {}<br \/>\n&lt;\/script&gt;[\/php]<\/p>\n<h3>\u30ca\u30d3\u306e\u4f4d\u7f6e\u3092\u904e\u304e\u305f\u3089window\u4e0a\u90e8\u306b\u8ffd\u5f93\u3055\u305b\u308b<\/h3>\n<p>[php]  &lt;script&gt;<br \/>\n\t$(window).on(&#8216;load&#8217;, (function() {<br \/>\n  let target = $(&quot;#nav&quot;).offset().top;<br \/>\n  $(window).on(&quot;scroll&quot;, function() {<br \/>\n    let currentPos = $(window).scrollTop();<br \/>\n    if(currentPos &gt; target) {<br \/>\n      $(&quot;#nav&quot;).addClass(&#8216;fixed&#8217;);<br \/>\n    } else{<br \/>\n      $(&quot;#nav&quot;).removeClass(&#8216;fixed&#8217;);<br \/>\n    }<br \/>\n  });<br \/>\n}));<br \/>\n&lt;\/script&gt;[\/php]<br \/>\n[php]<br \/>\n\/* CSS *\/<br \/>\n.fixed{ position: fixed; top:0; left: 0; width: 100%; z-index: 99;}[\/php]<\/p>\n<h3>\u30b9\u30af\u30ed\u30fc\u30eb\u304c\u6b62\u307e\u3063\u3066\u304b\u3089\u4e00\u5b9a\u6642\u9593\u5f8c\u306b\u8868\u793a<\/h3>\n<p>[php]<br \/>\n$(function(){<br \/>\n  var header= $(&#8216;#header&#8217;);<br \/>\n  var timer;<\/p>\n<p>  $(window).scroll(function() {<br \/>\n    \/\/\u30b9\u30af\u30ed\u30fc\u30eb\u958b\u59cb\u3059\u308b\u3068header\u3092\u975e\u8868\u793a<br \/>\n    header.removeClass(&#8216;is-fixed&#8217;);<\/p>\n<p>    \/\/\u30b9\u30af\u30ed\u30fc\u30eb\u4e2d\u306f\u30a4\u30d9\u30f3\u30c8\u306e\u767a\u706b\u3092\u30ad\u30e3\u30f3\u30bb\u30eb\u3059\u308b<br \/>\n    clearTimeout(timer);<\/p>\n<p>    \/\/\u30b9\u30af\u30ed\u30fc\u30eb\u304c\u505c\u6b62\u3057\u30661\u79d2\u5f8c\u306b\u30a4\u30d9\u30f3\u30c8\u3092\u767a\u706b\u3059\u308b<br \/>\n    timer = setTimeout(function() {<br \/>\n      \/\/\u30b9\u30af\u30ed\u30fc\u30eb\u4f4d\u7f6e\u3092\u5224\u5b9a\u3057\u3066\u30da\u30fc\u30b8\u4e0a\u90e8\u306e\u3068\u304d\u306f\u30dc\u30bf\u30f3\u3092\u975e\u8868\u793a\u306b\u3059\u308b<br \/>\n      if($(this).scrollTop()) {<\/p>\n<p>        header.addClass(&#8216;is-fixed&#8217;);<br \/>\n      }else{<br \/>\n        header.removeClass(&#8216;is-fixed&#8217;);<br \/>\n      }<br \/>\n    }, 1000);<br \/>\n  });<br \/>\n  [\/php]<\/p>\n<h4>\u30d5\u30a7\u30fc\u30c9\u30a4\u30f3\u3067\u8868\u793a\u3055\u305b\u308b<\/h4>\n<p>[php]$(function () {<br \/>\n  var header = $(&#8216;#header&#8217;);<br \/>\n  head_wrapOffsetTop = header.offset().top;<br \/>\n  var timer;<br \/>\n  $(window).scroll(function () {<br \/>\n    \/\/\u30b9\u30af\u30ed\u30fc\u30eb\u4e2d\u306f\u30a4\u30d9\u30f3\u30c8\u306e\u767a\u706b\u3092\u30ad\u30e3\u30f3\u30bb\u30eb\u3059\u308b<br \/>\n    clearTimeout(timer);<\/p>\n<p> \/\/\u30b9\u30af\u30ed\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3068header\u3092\u975e\u8868\u793a<br \/>\n   if ($(this).scrollTop() &gt; head_wrapOffsetTop) {<br \/>\n      \/\/header.css(&#8216;display&#8217;,&#8217;none&#8217;);<br \/>\n      header.hide();<br \/>\n      \/\/\u30b9\u30af\u30ed\u30fc\u30eb\u304c\u505c\u6b62\u3057\u30661\u79d2\u5f8c\u306b\u30a4\u30d9\u30f3\u30c8\u3092\u767a\u706b\u3059\u308b<br \/>\n      timer = setTimeout(function () {<br \/>\n        header.addClass(&#8216;is-fixed&#8217;);<br \/>\n        header.fadeIn(&#8216;slow&#8217;);<br \/>\n      }, 1000);<br \/>\n    } else {<br \/>\n\/\/\u30b9\u30af\u30ed\u30fc\u30eb\u4f4d\u7f6e\u3092\u5224\u5b9a\u3057\u3066\u30da\u30fc\u30b8\u4e0a\u90e8\u306e\u3068\u304d\u306fheader\u3092\u8868\u793a\u3059\u308b<br \/>\n      header.css(&#8216;display&#8217;, &#8216;block&#8217;);<br \/>\n      header.removeClass(&#8216;is-fixed&#8217;);<br \/>\n    }<br \/>\n  });<br \/>\n});[\/php]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6295\u7a3f\u95a2\u9023 \u30da\u30fc\u30b8ID \u53d6\u5f97\u30fb\u8868\u793a [php]&lt;?php $post_id &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,14,2,5],"tags":[],"class_list":["post-3381","post","type-post","status-publish","format-standard","hentry","category-jquery","category-php","category-web","category-wordpress-web-category"],"_links":{"self":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts\/3381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3381"}],"version-history":[{"count":0,"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts\/3381\/revisions"}],"wp:attachment":[{"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}