{"id":802,"date":"2025-12-23T12:05:05","date_gmt":"2025-12-23T03:05:05","guid":{"rendered":"https:\/\/kyum.chu.jp\/wp\/?p=802"},"modified":"2025-12-24T09:23:01","modified_gmt":"2025-12-24T00:23:01","slug":"%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%81%ab%e3%82%88%e3%82%8b%e8%a8%98%e4%ba%8b%e3%81%ae%e6%9b%b8%e3%81%8d%e6%96%b9","status":"publish","type":"post","link":"https:\/\/achamaweb.tech\/?p=802","title":{"rendered":"\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306b\u3088\u308b\u8a18\u4e8b\u306e\u66f8\u304d\u65b9"},"content":{"rendered":"\n<div class=\"block-group-box\">\n\n\n\n<p class=\"wp-block-paragraph\">\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u81ea\u4f5c\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e2\u30b9\u30c6\u30c3\u30d7\u3067\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<h2>\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u81ea\u4f5c\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e2\u30b9\u30c6\u30c3\u30d7\u3067\u5b9f\u88c5\u3057\u307e\u3059<\/h2>\n<ul>\n<li>1.\u56fa\u5b9a\u30da\u30fc\u30b8\uff08GUI\uff09: \u672c\u6587\u5185\u306b [photo_list] \u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3002<\/li>\n<li>2.functions.php: \u30d7\u30ed\u30b0\u30e9\u30e0\uff08\u8868\u793a\u3059\u308b\u5185\u5bb9\uff09\u3092\u5b9a\u7fa9\u3057\u3001\u540d\u524d\uff08\u30bf\u30b0\uff09\u3092\u4ed8\u3051\u308b\u3002<\/li>\n<\/ul>\n\n\n\n<h2>\u30b9\u30c6\u30c3\u30d71\uff1a\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9a\u7fa9<\/h2>\n\u4f7f\u7528\u3057\u3066\u3044\u308b\u30c6\u30fc\u30de\u306e functions.php \u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<br>\n\n<div class=\"code-block\">\n  <div class=\"info-head\">functions.php<\/div>\n    <pre><code>\n\/**\n * \u5199\u771f\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306e\u5b9a\u7fa9\n *\/\nfunction my_photo_list_shortcode() {\n    \/\/ 1. \u672c\u6765\u8868\u793a\u3057\u305f\u3044\u5185\u5bb9\u3092\u300c\u623b\u308a\u5024\u300d\u3068\u3057\u3066\u7d44\u307f\u7acb\u3066\u308b\n    $output = '<div class=\"my-photo-gallery\" style=\"display:flex; flex-wrap:wrap; gap:10px;\">';\n    \n    \/\/ \u4f8b\uff1a\u56fa\u5b9a\u306e\u753b\u50cf\u3092\u8868\u793a\u3059\u308b\u5834\u5408\uff08\u5b9f\u969b\u306b\u306f\u3053\u3053\u3067DB\u304b\u3089\u53d6\u5f97\u3059\u308b\u51e6\u7406\u3092\u66f8\u3051\u307e\u3059\uff09\n    for ($i = 1; $i <= 3; $i++) {\n        $output .= '<div class=\"photo-item\">';\n        $output .= '<img decoding=\"async\" src=\"\/images\/sample' . $i . '.jpg\" alt=\"\u5199\u771f\" style=\"width:200px; height:auto;\">';\n        $output .= '<\/div>';\n    }\n    \n    $output .= '<\/div>';\n\n    \/\/ 2. \u7d44\u307f\u7acb\u3066\u305fHTML\u3092\u8fd4\u3059\uff08echo\u3067\u306f\u306a\u304freturn\u306b\u3059\u308b\u306e\u304c\u30eb\u30fc\u30eb\u3067\u3059\uff09\n    return $output;\n}\n\n\/\/ 3. \u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u767b\u9332\u3059\u308b [photo_list] \u3068\u3044\u3046\u540d\u524d\u3067\u4f7f\u7528\u53ef\u80fd\u306b\u3059\u308b\nadd_shortcode('photo_list', 'my_photo_list_shortcode');\n    <\/code><\/pre>\n<\/div>\n\n\n\n\n<h2>\u30b9\u30c6\u30c3\u30d72\uff1a\u56fa\u5b9a\u30da\u30fc\u30b8\u3078\u306e\u8cbc\u308a\u4ed8\u3051<\/h2>\nWordPress\u306e\u56fa\u5b9a\u30da\u30fc\u30b8\u7de8\u96c6\u753b\u9762\uff08GUI\uff09\u3092\u958b\u304d\u3001\u672c\u6587\u306e\u597d\u304d\u306a\u5834\u6240\u306b\u4ee5\u4e0b\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<br>\n\u30fb\u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u306e\u5834\u5408: \u300c\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u300d\u30d6\u30ed\u30c3\u30af\u3092\u8ffd\u52a0\u3057\u3001[photo_list] \u3068\u5165\u529b\u3002<br>\n\u30fb\u30af\u30e9\u30b7\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u306e\u5834\u5408: \u30c6\u30ad\u30b9\u30c8\u30e2\u30fc\u30c9\u3067 [photo_list] \u3068\u5165\u529b\u3002\n\n\n\n\n\n<style>\n    \/* \u753b\u50cf\u30b3\u30f3\u30c6\u30ca *\/\n    .comparison-container {\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        gap: 20px;\n        width: 95%;\n        max-width: 1000px;\n        padding: 20px;\n    }\n\n    \/* \u753b\u50cf\u3092\u5305\u3080\u30e9\u30c3\u30d1\u30fc *\/\n    .image-wrapper {\n        flex: 1;\n        position: relative;\n        border-radius: 12px;\n        overflow: hidden;\n        box-shadow: 0 4px 6px -1px rgb(0 0 0 \/ 0.1);\n        background-color: #fff;\n        aspect-ratio: 16 \/ 9;\n    }\n\n    .image-wrapper img {\n        width: 100%;\n        height: 100%;\n        object-fit: cover;\n        display: block;\n    }\n\n    \/* \u4e2d\u592e\u306e\u77e2\u5370\u30b3\u30f3\u30c6\u30ca *\/\n    .arrow-divider {\n        flex-shrink: 0;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        width: 60px;\n    }\n\n    \/* SVG\u306e\u30b9\u30bf\u30a4\u30eb *\/\n    .right-arrow-svg {\n        width: 100%;\n        height: auto;\n        fill: var(--arrow-color);\n        filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));\n    }\n\n    \/* \u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5bfe\u5fdc: \u30b9\u30de\u30db\u8868\u793a\u3067\u306f\u7e26\u4e26\u3073\u306b *\/\n    @media (max-width: 640px) {\n        .comparison-container {\n            flex-direction: column;\n            gap: 15px;\n        }\n\n        .arrow-divider {\n            width: 40px;\n            transform: rotate(90deg); \/* \u7e26\u4e26\u3073\u306e\u6642\u306f\u4e0b\u77e2\u5370\u306b\u5909\u66f4 *\/\n            margin: 10px 0;\n        }\n        \n        .image-wrapper {\n            width: 100%;\n        }\n    }\n<\/style>\n\n    <div class=\"comparison-container\">\n        <!-- \u5de6\u5074\u306e\u753b\u50cf -->\n        <div class=\"image-wrapper\">\n            <img decoding=\"async\" src=\"https:\/\/kyum.chu.jp\/wp\/wp-content\/uploads\/2025\/12\/image-16-893x1024.png\" alt=\"\u98a8\u666f\u753b\u50cf1\">\n        <\/div>\n        <!-- \u4e2d\u592e\u306e\u9752\u3044\u53f3\u77e2\u5370 (SVG) -->\n        <div class=\"arrow-divider\">\n            <svg class=\"right-arrow-svg\" viewBox=\"0 0 24 24\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                <path d=\"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z\"\/>\n            <\/svg>\n        <\/div>\n        <!-- \u53f3\u5074\u306e\u753b\u50cf -->\n        <div class=\"image-wrapper\">\n            <img decoding=\"async\" src=\"https:\/\/kyum.chu.jp\/wp\/wp-content\/uploads\/2025\/12\/image-17-1024x593.png\" alt=\"\u98a8\u666f\u753b\u50cf2\" >\n        <\/div>\n    <\/div>\n\n\n\n\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u81ea\u4f5c\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e2\u30b9\u30c6\u30c3\u30d7\u3067\u5b9f\u88c5\u3057\u307e\u3059\u3002 \u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u81ea\u4f5c\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e2\u30b9\u30c6\u30c3\u30d7\u3067\u5b9f\u88c5\u3057\u307e\u3059 1.\u56fa\u5b9a\u30da\u30fc\u30b8\uff08GUI\uff09: \u672c\u6587\u5185\u306b [photo_list] \u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3002 2.funct [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11,1],"tags":[],"class_list":["post-802","post","type-post","status-publish","format-standard","hentry","category-wordpress-group","category-uncategorized"],"acf":[],"_links":{"self":[{"href":"https:\/\/achamaweb.tech\/index.php?rest_route=\/wp\/v2\/posts\/802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/achamaweb.tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/achamaweb.tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/achamaweb.tech\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/achamaweb.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=802"}],"version-history":[{"count":6,"href":"https:\/\/achamaweb.tech\/index.php?rest_route=\/wp\/v2\/posts\/802\/revisions"}],"predecessor-version":[{"id":1097,"href":"https:\/\/achamaweb.tech\/index.php?rest_route=\/wp\/v2\/posts\/802\/revisions\/1097"}],"wp:attachment":[{"href":"https:\/\/achamaweb.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/achamaweb.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/achamaweb.tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}