{"id":22805,"date":"2023-06-24T12:26:37","date_gmt":"2023-06-24T03:26:37","guid":{"rendered":"https:\/\/motoki-design.co.jp\/wordpress\/?p=22805"},"modified":"2026-10-03T08:22:10","modified_gmt":"2026-10-02T23:22:10","slug":"shortcode_custom_field","status":"publish","type":"post","link":"https:\/\/motoki-design.co.jp\/wordpress\/shortcode_custom_field\/","title":{"rendered":"WordPress\u2502\u53c2\u7167\u3057\u305f\u8a18\u4e8b\u306b\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3067\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u3092\u5272\u308a\u5f53\u3066\u308b\u65b9\u6cd5"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Smart Custom Fields\u306e\u5024\u3092\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3067\u8868\u793a\u3057\u307e\u3059\u3002\u30c6\u30ad\u30b9\u30c8\u306fHTML\u3068\u3057\u3066\u5b9f\u884c\u305b\u305a\u3001\u516c\u958b\u3057\u3066\u3088\u3044\u30d5\u30a3\u30fc\u30eb\u30c9\u540d\u3060\u3051\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002SWELL\u306e\u30d6\u30ed\u30b0\u30d1\u30fc\u30c4\u304b\u3089\u547c\u3073\u51fa\u3059\u5834\u5408\u3082\u3001\u8868\u793a\u5bfe\u8c61\u306e\u8a18\u4e8bID\u3092\u660e\u78ba\u306b\u3057\u307e\u3059\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u5bfe\u8c61\u3068\u8cbc\u4ed8\u5148<\/h2>\n<p class=\"wp-block-paragraph\">PHP 8.0\u4ee5\u964d\u3092\u524d\u63d0\u306b\u3001\u5b50\u30c6\u30fc\u30de\u306efunctions.php\u306ePHP\u9818\u57df\u3078\u8ffd\u52a0\u3057\u307e\u3059\u3002\u5148\u982d\u306e&lt;?php\u306f\u91cd\u306d\u307e\u305b\u3093\u3002\u65e7motoki_shortcode_custom_field\u30fbmotoki_btn_shortcode\u30fbmotoki_google_map_shortcode\u30fbtwitter_shortcode\u3068\u3001\u305d\u306eadd_shortcode\u306f\u5916\u3057\u3066\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002\u540c\u540d\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u8907\u6570\u767b\u9332\u3057\u307e\u305b\u3093\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u6a19\u6e96\u306epost_id\u306f\u73fe\u5728\u8868\u793a\u3057\u3066\u3044\u308b\u30da\u30fc\u30b8\u3067\u3059\u3002\u8a18\u4e8b\u4e00\u89a7\u5185\u306e\u30ab\u30fc\u30c9\u3084\u5225\u8a18\u4e8b\u3092\u53c2\u7167\u3059\u308b\u5834\u5408\u306fpost_id\u3092\u660e\u793a\u3057\u307e\u3059\u3002\u516c\u958b\u3055\u308c\u3066\u3044\u306a\u3044\u8a18\u4e8b\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u4fdd\u8b77\u4e2d\u306e\u8a18\u4e8b\u306f\u8868\u793a\u3057\u307e\u305b\u3093\u3002\u8a31\u53ef\u30ea\u30b9\u30c8\u306f\u30b5\u30a4\u30c8\u306e\u5b9f\u30d5\u30a3\u30fc\u30eb\u30c9\u540d\u306b\u5408\u308f\u305b\u3001\u500b\u4eba\u60c5\u5831\u3084\u5185\u90e8\u30ad\u30fc\u3092\u52a0\u3048\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u5b9f\u88c5\u30b3\u30fc\u30c9<\/h2>\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>&lt;?php\nfunction waza_scf_post_id($value) {\n    $id = absint($value ?: get_queried_object_id());\n    $post = get_post($id);\n    return $post &amp;&amp; is_post_publicly_viewable($post) &amp;&amp; !post_password_required($post) ? $id : 0;\n}\nfunction waza_scf_value($field, $id) {\n    \/\/ \u516c\u958b\u3059\u308b\u30d5\u30a3\u30fc\u30eb\u30c9\u3060\u3051\u3092\u5217\u6319\u3002\u79d8\u5bc6\u60c5\u5831\u3084\u5185\u90e8\u30ad\u30fc\u306f\u8ffd\u52a0\u3057\u306a\u3044\u3002\n    $allowed = &#91;&#x27;scf_text&#x27;, &#x27;scf_textarea&#x27;, &#x27;scf_image&#x27;, &#x27;scf_checkbox&#x27;, &#x27;scf_radio&#x27;, &#x27;scf_btn&#x27;, &#x27;scf_map&#x27;];\n    if (!class_exists(&#x27;SCF&#x27;) || !$id || !in_array($field, $allowed, true)) return null;\n    return SCF::get($field, $id);\n}\nfunction waza_scf_text($atts) {\n    $a = shortcode_atts(&#91;&#x27;field&#x27;=&gt;&#x27;scf_text&#x27;, &#x27;type&#x27;=&gt;&#x27;text&#x27;, &#x27;post_id&#x27;=&gt;&#x27;0&#x27;], $atts);\n    $value = waza_scf_value($a&#91;&#x27;field&#x27;], waza_scf_post_id($a&#91;&#x27;post_id&#x27;]));\n    if ($value === null || $value === &#x27;&#x27; || $value === false) return &#x27;&#x27;;\n    switch ($a&#91;&#x27;type&#x27;]) {\n        case &#x27;text&#x27;: case &#x27;radio&#x27;:\n            return is_scalar($value) ? esc_html((string) $value) : &#x27;&#x27;;\n        case &#x27;textarea&#x27;:\n            return is_scalar($value) ? nl2br(esc_html((string) $value)) : &#x27;&#x27;;\n        case &#x27;checkbox&#x27;:\n            return is_array($value) ? esc_html(implode(&#x27;, &#x27;, array_filter($value, &#x27;is_scalar&#x27;))) : &#x27;&#x27;;\n        case &#x27;image&#x27;:\n            return is_numeric($value) ? wp_get_attachment_image(absint($value), &#x27;large&#x27;) : &#x27;&#x27;;\n        default: return &#x27;&#x27;;\n    }\n}\nadd_shortcode(&#x27;custom_field&#x27;, &#x27;waza_scf_text&#x27;);\nadd_shortcode(&#x27;scf_btn&#x27;, function ($atts) {\n    $a = shortcode_atts(&#91;&#x27;field_name&#x27;=&gt;&#x27;scf_btn&#x27;, &#x27;text&#x27;=&gt;&#x27;\u8a73\u3057\u304f\u898b\u308b&#x27;, &#x27;post_id&#x27;=&gt;&#x27;0&#x27;], $atts);\n    $value = waza_scf_value($a&#91;&#x27;field_name&#x27;], waza_scf_post_id($a&#91;&#x27;post_id&#x27;]));\n    if (!is_string($value) || !preg_match(&#x27;~^https?:\/\/~i&#x27;, $value)) return &#x27;&#x27;;\n    $url = esc_url($value, &#91;&#x27;http&#x27;,&#x27;https&#x27;]);\n    if (!$url) return &#x27;&#x27;;\n    return &#x27;&lt;div class=&quot;swell-block-button is-style-btn_normal&quot;&gt;&lt;a class=&quot;swell-block-button__link&quot; href=&quot;&#x27; . $url . &#x27;&quot;&gt;&#x27; . esc_html($a&#91;&#x27;text&#x27;]) . &#x27;&lt;\/a&gt;&lt;\/div&gt;&#x27;;\n});\nadd_shortcode(&#x27;scf_map&#x27;, function ($atts) {\n    $a = shortcode_atts(&#91;&#x27;post_id&#x27;=&gt;&#x27;0&#x27;], $atts);\n    $value = waza_scf_value(&#x27;scf_map&#x27;, waza_scf_post_id($a&#91;&#x27;post_id&#x27;]));\n    if (!is_string($value)) return &#x27;&#x27;;\n    $url = wp_parse_url($value);\n    if (($url&#91;&#x27;scheme&#x27;] ?? &#x27;&#x27;) !== &#x27;https&#x27; || ($url&#91;&#x27;host&#x27;] ?? &#x27;&#x27;) !== &#x27;www.google.com&#x27; || !str_starts_with($url&#91;&#x27;path&#x27;] ?? &#x27;&#x27;, &#x27;\/maps\/embed&#x27;) || isset($url&#91;&#x27;user&#x27;]) || isset($url&#91;&#x27;pass&#x27;])) return &#x27;&#x27;;\n    return &#x27;&lt;iframe title=&quot;\u6240\u5728\u5730\u306e\u5730\u56f3&quot; src=&quot;&#x27; . esc_url($value) . &#x27;&quot; width=&quot;600&quot; height=&quot;450&quot; style=&quot;max-width:100%;border:0&quot; loading=&quot;lazy&quot; allowfullscreen&gt;&lt;\/iframe&gt;&#x27;;\n});\n<\/code><\/pre><\/div>\n<h2 class=\"wp-block-heading\">\u8a18\u4e8b\u306b\u8cbc\u308b\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9<\/h2>\n<p class=\"wp-block-paragraph\">\u6b21\u306f\u672c\u6587\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u3078\u5165\u308c\u307e\u3059\u3002123\u306f\u8868\u793a\u5143\u306b\u3059\u308b\u516c\u958b\u8a18\u4e8b\u306eID\u3078\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002\u8a18\u4e8b\u30d1\u30fc\u30c4\u81ea\u4f53\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u8aad\u3080\u5834\u5408\u3082\u3001\u305d\u306e\u30d1\u30fc\u30c4\u3092\u53d6\u5f97\u3067\u304d\u308b\u3068\u306f\u9650\u3089\u306a\u3044\u305f\u3081\u3001\u516c\u958b\u8a18\u4e8b\u3078\u306e\u53c2\u7167\u304b\u3089\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\" data-lang=\"PLAIN\"><code>&#91;custom_field field=&quot;scf_text&quot; type=&quot;text&quot; post_id=&quot;123&quot;]\n&#91;custom_field field=&quot;scf_textarea&quot; type=&quot;textarea&quot; post_id=&quot;123&quot;]\n&#91;custom_field field=&quot;scf_checkbox&quot; type=&quot;checkbox&quot; post_id=&quot;123&quot;]\n&#91;custom_field field=&quot;scf_radio&quot; type=&quot;radio&quot; post_id=&quot;123&quot;]\n&#91;custom_field field=&quot;scf_image&quot; type=&quot;image&quot; post_id=&quot;123&quot;]\n&#91;scf_btn text=&quot;\u8a73\u3057\u304f\u898b\u308b&quot; post_id=&quot;123&quot;]\n&#91;scf_map post_id=&quot;123&quot;]<\/code><\/pre><\/div>\n<p class=\"wp-block-paragraph\">type\u306ftext\u30fbtextarea\u30fbcheckbox\u30fbradio\u30fbimage\u3067\u3059\u3002\u753b\u50cf\u306f\u6dfb\u4ed8\u753b\u50cfID\u3001\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306f\u4e00\u6b21\u5143\u306e\u5024\u306e\u914d\u5217\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u6570\u50240\u3068\u6587\u5b57\u52170\u306f\u6d88\u3055\u305a\u306b\u8868\u793a\u3057\u307e\u3059\u3002\u30b0\u30eb\u30fc\u30d7\u306e\u7e70\u308a\u8fd4\u3057\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u30d5\u30a3\u30fc\u30eb\u30c9\u540d\u3068\u8868\u793a\u65b9\u6cd5\u3092\u5bfe\u5fdc\u3055\u305b\u308b<\/h2>\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u4fdd\u5b58\u3059\u308b\u5024<\/th><th>\u6307\u5b9a\u3059\u308b\u8868\u793a\u65b9\u6cd5<\/th><th>\u51fa\u529b<\/th><\/tr><\/thead><tbody><tr><td>scf_text\u30fbscf_radio\u306e\u6587\u5b57\u5217<\/td><td>text\u30fbradio<\/td><td>\u30bf\u30b0\u3092\u6587\u5b57\u3068\u3057\u3066\u6271\u3046\u30c6\u30ad\u30b9\u30c8<\/td><\/tr><tr><td>scf_textarea\u306e\u6587\u5b57\u5217<\/td><td>textarea<\/td><td>\u6539\u884c\u3092\u6b8b\u3057\u305f\u30c6\u30ad\u30b9\u30c8<\/td><\/tr><tr><td>scf_checkbox\u306e\u4e00\u6b21\u5143\u914d\u5217<\/td><td>checkbox<\/td><td>\u5024\u3092\u30b3\u30f3\u30de\u3067\u533a\u5207\u3063\u305f\u30c6\u30ad\u30b9\u30c8<\/td><\/tr><tr><td>scf_image\u306e\u6dfb\u4ed8\u753b\u50cfID<\/td><td>image<\/td><td>WordPress\u306e\u753b\u50cf\u30bf\u30b0<\/td><\/tr><tr><td>scf_btn\u306ehttps\/http URL<\/td><td>scf_btn<\/td><td>\u6307\u5b9a\u3057\u305f\u30e9\u30d9\u30eb\u306e\u30ea\u30f3\u30af<\/td><\/tr><\/tbody><\/table><\/figure>\n<p class=\"wp-block-paragraph\">field\u306f\u7ba1\u7406\u753b\u9762\u306e\u8868\u793a\u30e9\u30d9\u30eb\u3067\u306f\u306a\u304f\u3001Smart Custom Fields\u3067\u767b\u9332\u3057\u305f\u5b9f\u969b\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u540d\u306b\u5408\u308f\u305b\u307e\u3059\u3002\u3053\u306e\u4f8b\u306e\u8a31\u53ef\u30ea\u30b9\u30c8\u306b\u306a\u3044\u540d\u524d\u306f\u7a7a\u51fa\u529b\u306b\u306a\u308a\u307e\u3059\u3002\u5225\u540d\u3092\u4f7f\u3046\u5834\u5408\u306f\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3060\u3051\u3067\u306a\u304f\u3001\u516c\u958b\u3057\u3066\u3088\u3044\u540d\u524d\u306e\u8a31\u53ef\u30ea\u30b9\u30c8\u3082\u66f4\u65b0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u753b\u50cf\u306e\u4fdd\u5b58\u5024\u306f\u753b\u50cfURL\u3067\u306f\u306a\u304f\u6dfb\u4ed8\u753b\u50cfID\u3067\u3059\u3002\u753b\u50cf\u304c\u51fa\u306a\u3044\u3068\u304d\u306f\u3001\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u4fdd\u5b58\u5024\u3068\u30e1\u30c7\u30a3\u30a2\u306eID\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u6570\u5024\u306b\u898b\u3048\u308b\u6295\u7a3fID\u3067\u3082\u3001\u753b\u50cf\u306e\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u3057\u3066\u3044\u306a\u3051\u308c\u3070\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u30d6\u30ed\u30b0\u30d1\u30fc\u30c4\u304b\u3089\u4f7f\u3046\u5834\u5408\u306f\u3001\u8868\u793a\u5143\u306e\u516c\u958b\u8a18\u4e8bID\u3092post_id\u306b\u660e\u793a\u3057\u307e\u3059\u3002\u30d1\u30fc\u30c4\u306eID\u3068\u3001\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u304c\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u8a18\u4e8b\u306eID\u3092\u53d6\u308a\u9055\u3048\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u753b\u50cf\u3092\u9078\u629e\u3057\u3066\u4fdd\u5b58\u3057\u3001\u8868\u793a\u5143\u3092\u78ba\u8a8d\u3059\u308b<\/h2>\n<p class=\"wp-block-paragraph\">SCF\u306e\u753b\u50cf\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u306f\u30e1\u30c7\u30a3\u30a2\u30e9\u30a4\u30d6\u30e9\u30ea\u304b\u3089\u753b\u50cf\u3092\u9078\u3073\u3001\u8a18\u4e8b\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002\u30d5\u30a3\u30fc\u30eb\u30c9\u540dscf_image\u306b\u5bfe\u3057\u3066\u3001\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306b\u306ffield=&#8221;scf_image&#8221;\u3068type=&#8221;image&#8221;\u306e\u4e21\u65b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002type\u3092\u7701\u304f\u3068\u65e2\u5b9a\u306etext\u3068\u3057\u3066\u6271\u308f\u308c\u3001\u753b\u50cf\u306b\u306f\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p class=\"wp-block-paragraph\">2026\u5e7410\u67083\u65e5\u306bSmart Custom Fields 5.0.8\u306e\u5b9f\u969b\u306e\u6295\u7a3f\u7de8\u96c6\u753b\u9762\u3067\u30c6\u30ad\u30b9\u30c8\u3068\u753b\u50cf\u3092\u4fdd\u5b58\u3057\u307e\u3057\u305f\u3002\u518d\u8868\u793a\u3057\u305f\u5165\u529b\u6b04\u306b\u9078\u629e\u753b\u50cf\u304c\u6b8b\u308a\u3001\u672c\u6587\u3067\u306fSCF::get()\u304c\u8fd4\u3057\u305f\u6dfb\u4ed8\u753b\u50cfID\u304b\u3089\u5b9f\u30d5\u30a1\u30a4\u30eb\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002\u5225\u8a18\u4e8b\u304b\u3089post_id\u3092\u660e\u793a\u3057\u305f\u53c2\u7167\u3082\u540c\u3058\u753b\u50cf\u3092\u8868\u793a\u3057\u307e\u3057\u305f\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u901a\u5e38\u306e\u6295\u7a3fID\u3092\u753b\u50cf\u306e\u4fdd\u5b58\u5024\u3078\u5165\u308c\u305f\u5834\u5408\u306f\u753b\u50cf\u304c\u51fa\u305a\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u4fdd\u8b77\u4e2d\u306e\u8a18\u4e8b\u3092post_id\u3067\u53c2\u7167\u3057\u305f\u5834\u5408\u3082\u7a7a\u51fa\u529b\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u753b\u50cf\u304c\u51fa\u306a\u3044\u3068\u304d\u306f\u3001\u8a18\u4e8b\u306e\u66f4\u65b0\u5fd8\u308c\u3001type\u306e\u6307\u5b9a\u3001\u30d5\u30a3\u30fc\u30eb\u30c9\u540d\u3001\u8868\u793a\u5143\u306e\u8a18\u4e8bID\u3001\u6dfb\u4ed8\u753b\u50cfID\u3092\u9806\u306b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-meta-20261003-native-scf-saved.jpg\"><img decoding=\"async\" width=\"1265\" height=\"712\" data-no-lightbox=\"1\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-meta-20261003-native-scf-saved.jpg\" alt=\"Smart Custom Fields\u306e\u7ba1\u7406\u753b\u9762\u3067\u4fdd\u5b58\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u3068\u9078\u629e\u753b\u50cf\" class=\"wp-image-30485\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-meta-20261003-native-scf-saved.jpg 1265w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-meta-20261003-native-scf-saved-382x215.jpg 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-meta-20261003-native-scf-saved-812x457.jpg 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-meta-20261003-native-scf-saved-768x432.jpg 768w\" sizes=\"(max-width: 1265px) 100vw, 1265px\" \/><\/a><figcaption class=\"wp-element-caption\">\u8a18\u4e8b\u66f4\u65b0\u5f8c\u306b\u518d\u8868\u793a\u3057\u305fSCF\u306e\u30c6\u30ad\u30b9\u30c8\u3068\u753b\u50cf\u6b04\u3002WordPress 7.1.2\u30fbSmart Custom Fields 5.0.8\u306e\u9694\u96e2\u74b0\u5883\u3002<\/figcaption><\/figure>\n<h2 class=\"wp-block-heading\">\u5730\u56f3\u3068\u30dc\u30bf\u30f3\u306e\u5165\u529b<\/h2>\n<p class=\"wp-block-paragraph\">scf_btn\u306b\u306fhttp\u307e\u305f\u306fhttps\u306eURL\u3092\u5165\u308c\u307e\u3059\u3002scf_map\u306b\u306fGoogle\u30de\u30c3\u30d7\u306e\u300c\u5730\u56f3\u3092\u57cb\u3081\u8fbc\u3080\u300d\u3067\u5f97\u305fiframe\u306esrc\u3060\u3051\u3092\u5165\u308c\u307e\u3059\u3002\u3053\u306e\u4f8b\u3067\u8a31\u53ef\u3059\u308b\u306e\u306fhttps:\/\/www.google.com\/maps\/embed\u3067\u59cb\u307e\u308b\u30d1\u30b9\u3067\u3059\u3002\u901a\u5e38\u306e\u5171\u6709\u30ea\u30f3\u30af\u3084\u4ed6\u793eiframe\u306f\u8868\u793a\u3057\u307e\u305b\u3093\u3002\u65e7Twitter\u57cb\u3081\u8fbc\u307f\u306f\u3053\u306e\u5b9f\u88c5\u306b\u306f\u542b\u3081\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u30c1\u30a7\u30c3\u30af\u3068\u30e9\u30b8\u30aa\u3092\u4fdd\u5b58\u3057\u3066\u8868\u793a\u3059\u308b<\/h2>\n<figure class=\"wp-block-table\"><table><thead><tr><th>SCF\u306e\u5165\u529b<\/th><th>\u8868\u793a\u4f8b\u3068\u78ba\u8a8d<\/th><\/tr><\/thead><tbody><tr><td>\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\uff1a\u8a2d\u8a08\u3068\u691c\u8a3c<\/td><td>type=&#8221;checkbox&#8221;\u3067\u300c\u8a2d\u8a08, \u691c\u8a3c\u300d<\/td><\/tr><tr><td>\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\uff1a\u78ba\u5b9a<\/td><td>type=&#8221;radio&#8221;\u3067\u300c\u78ba\u5b9a\u300d<\/td><\/tr><tr><td>scf_btn\u306b\u81ea\u30b5\u30a4\u30c8\u306eURL<\/td><td>\u30dc\u30bf\u30f3\u306e\u30ea\u30f3\u30af\u5148\u304c\u4fdd\u5b58\u3057\u305fURL<\/td><\/tr><\/tbody><\/table><\/figure>\n<p class=\"wp-block-paragraph\">SCF\u5074\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u540d\u3068\u3001\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306efield\u3092\u4e00\u81f4\u3055\u305b\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">SCF\u306e\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306f\u8907\u6570\u306e\u5024\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u3001\u3053\u306e\u5b9f\u88c5\u3067\u306f\u30ab\u30f3\u30de\u533a\u5207\u308a\u306e\u6587\u5b57\u5217\u3068\u3057\u3066\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u306f\u5358\u4e00\u306e\u9078\u629e\u5024\u3067\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u63b2\u8f09\u4f8b\u306escf_radio\u3092\u5b9f\u969b\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u540d\u306b\u3001post_id\u306e123\u3092\u5024\u3092\u4fdd\u5b58\u3057\u305f\u6295\u7a3fID\u306b\u7f6e\u304d\u63db\u3048\u3001type=&#8221;radio&#8221;\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p class=\"wp-block-paragraph\">2026\u5e7410\u67083\u65e5\u306eWordPress 7.1.2 \/ SWELL 2.19.0 \/ SCF 5.0.8\u3067\u306f\u3001\u30c1\u30a7\u30c3\u30af\u3092Space\u3001\u30e9\u30b8\u30aa\u3092\u77e2\u5370\u30ad\u30fc\u3067\u9078\u3073\u3001\u66f4\u65b0\u5f8c\u306e\u7de8\u96c6\u753b\u9762\u3068\u672c\u6587\u3067\u5024\u304c\u4fdd\u6301\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u540c\u3058\u753b\u9762\u3067\u4fdd\u5b58\u3057\u305f\u81ea\u30b5\u30a4\u30c8URL\u3078\u3001\u8868\u793a\u30dc\u30bf\u30f3\u3092Enter\u30ad\u30fc\u3067\u958b\u3051\u307e\u3057\u305f\u3002<\/p>\n<p class=\"wp-block-paragraph\">URL\u3092\u4fdd\u5b58\u3059\u308b\u6b04\u306fscf_btn\u3067\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u901a\u5e38\u306e\u30c6\u30ad\u30b9\u30c8\u8868\u793a\u306efield\u3068\u306f\u5f79\u5272\u3092\u5206\u3051\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u5730\u56f3\u306e\u5b9f\u8868\u793a\u3084\u5916\u90e8\u30ea\u30f3\u30af\u5148\u306e\u6319\u52d5\u306f\u5225\u306b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u623b\u3059\u3068\u304d\u306f\u8a2d\u7f6e\u3057\u305f\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u5916\u3057\u3001\u3053\u306e\u5b9f\u88c5\u306e\u767b\u9332\u3092\u7121\u52b9\u306b\u3057\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">SCF\u306b\u4fdd\u5b58\u6e08\u307f\u306e\u5024\u3092\u524a\u9664\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-scf-selection-native-20261003.jpg\"><img decoding=\"async\" width=\"1265\" height=\"712\" data-no-lightbox=\"1\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-scf-selection-native-20261003.jpg\" alt=\"\u4fdd\u5b58\u3057\u305fSCF\u306e\u30c1\u30a7\u30c3\u30af\u3068\u30e9\u30b8\u30aa\u306e\u5024\u3092\u672c\u6587\u306b\u8868\u793a\u3057\u305f\u753b\u9762\" class=\"wp-image-30612\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-scf-selection-native-20261003.jpg 1265w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-scf-selection-native-20261003-382x215.jpg 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-scf-selection-native-20261003-812x457.jpg 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-scf-selection-native-20261003-768x432.jpg 768w\" sizes=\"(max-width: 1265px) 100vw, 1265px\" \/><\/a><figcaption class=\"wp-element-caption\">\u4fdd\u5b58\u3057\u305fSCF\u306e\u30c1\u30a7\u30c3\u30af\u3068\u30e9\u30b8\u30aa\u306e\u5024\u3092\u672c\u6587\u306b\u8868\u793a\u3057\u305f\u753b\u9762\u30022026\u5e7410\u67083\u65e5\u3001\u9694\u96e2\u3057\u305fWordPress 7.1.2 \/ SWELL 2.19.0 \/ SCF 5.0.8\u3067\u64ae\u5f71\u3002<\/figcaption><\/figure><h2 class=\"wp-block-heading\">\u78ba\u8a8d\u30fb\u89e3\u9664<\/h2>\n<p class=\"wp-block-paragraph\">\u5024\u306a\u3057\u30010\u3001\u6539\u884c\u3001\u5f15\u7528\u7b26\u3092\u542b\u3080\u6587\u5b57\u5217\u3001\u753b\u50cf\u672a\u8a2d\u5b9a\u3001\u975e\u516c\u958b\u8a18\u4e8bID\u3067\u78ba\u8a8d\u3057\u307e\u3059\u3002SCF\u304c\u7121\u52b9\u306a\u3089\u7a7a\u6587\u5b57\u306b\u306a\u308a\u307e\u3059\u3002\u30dc\u30bf\u30f3\u306fPC\u30fb\u30b9\u30de\u30db\u306e\u4e21\u65b9\u3067Tab\u3068Enter\u3067\u64cd\u4f5c\u3057\u3001\u5730\u56f3\u306b\u306f\u8aad\u307f\u53d6\u308c\u308b\u30bf\u30a4\u30c8\u30eb\u304c\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u8868\u793a\u304c\u9055\u3046\u5834\u5408\u306f\u307e\u305afield\u540d\u3068post_id\u3092\u898b\u76f4\u3057\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u89e3\u9664\u3059\u308b\u5834\u5408\u306f\u672c\u6587\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u5916\u3057\u3001\u8ffd\u52a0\u3057\u305f\u95a2\u6570\u3068\u767b\u9332\u51e6\u7406\u3092\u307e\u3068\u3081\u3066\u524a\u9664\u3057\u307e\u3059\u3002\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u306f\u524a\u9664\u3057\u307e\u305b\u3093\u3002\u65e7GitHub\u4f8b\u3068\u306f\u540c\u671f\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u672c\u6587\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u53d6\u5f97\u65b9\u6cd5\u306f<a href=\"https:\/\/github.com\/inc2734\/smart-custom-fields\">Smart Custom Fields\u306e\u516c\u5f0f\u30ea\u30dd\u30b8\u30c8\u30ea<\/a>\u3092\u53c2\u7167\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Smart Custom Fields\u306e\u5024\u3092\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3067\u8868\u793a\u3057\u307e\u3059\u3002\u30c6\u30ad\u30b9\u30c8\u306fHTML\u3068\u3057\u3066\u5b9f\u884c\u305b\u305a\u3001\u516c\u958b\u3057\u3066\u3088\u3044\u30d5\u30a3\u30fc\u30eb\u30c9\u540d\u3060\u3051\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002SWELL\u306e\u30d6\u30ed\u30b0\u30d1\u30fc\u30c4\u304b\u3089\u547c\u3073\u51fa\u3059\u5834\u5408\u3082\u3001\u8868\u793a\u5bfe\u8c61\u306e\u8a18\u4e8bID\u3092\u660e\u78ba\u306b\u3057 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":22828,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","book_review_data":"","footnotes":"","ssp_meta_title":"\u53c2\u7167\u8a18\u4e8b\u306b\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3067\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u5024\u3092\u5272\u5f53","ssp_meta_description":"Smart Custom Fields\u306e\u516c\u958b\u7528\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3067\u8868\u793a\u3059\u308b\u30b3\u30fc\u30c9\u4f8b\u3002\u8a18\u4e8bID\u306e\u6307\u5b9a\u3001\u6587\u5b57\u5217\u306e\u30a8\u30b9\u30b1\u30fc\u30d7\u3001\u753b\u50cf\u30fb\u30dc\u30bf\u30f3\u30fbGoogle\u30de\u30c3\u30d7\u306e\u5165\u529b\u5f62\u5f0f\u3068\u78ba\u8a8d\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002"},"categories":[91],"tags":[],"area":[],"class_list":["post-22805","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-customize"],"_links":{"self":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/22805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=22805"}],"version-history":[{"count":6,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/22805\/revisions"}],"predecessor-version":[{"id":30617,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/22805\/revisions\/30617"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media\/22828"}],"wp:attachment":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=22805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=22805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=22805"},{"taxonomy":"area","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/area?post=22805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}