{"id":329,"date":"2012-02-24T00:41:40","date_gmt":"2012-02-23T15:41:40","guid":{"rendered":"https:\/\/gunmagisgeek.com\/wordpress\/?p=329"},"modified":"2017-11-30T11:15:48","modified_gmt":"2017-11-30T02:15:48","slug":"post-329","status":"publish","type":"post","link":"https:\/\/gunmagisgeek.com\/blog\/php\/329","title":{"rendered":"WordPress\u306b\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u3002"},"content":{"rendered":"<p><span class=\"removed_link\" title=\"http:\/\/www.pasonatech.co.jp\/event\/index.jsp?mode=2&amp;d=on&amp;no=3312\">Web\u30c7\u30b6\u30a4\u30ca\u30fc\u306e\u305f\u3081\u306e\u3001PHP\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0WordPress\u3067\u5b66\u3076CMS\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u5165\u9580\u3000\uff5eWordPress\u30b5\u30a4\u30c8\u904b\u7528\u7de8\uff5e<\/span><\/p>\n<p>\u4e0a\u8a18\u306e\u30bb\u30df\u30ca\u30fc\u306b\u53c2\u52a0\u3057\u3066\u304d\u305f\u306e\u3067\u3059\u304c\u3001\u601d\u3044\u306e\u307b\u304b\u7c21\u5358\u306bWordPress\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u4f5c\u308c\u308b\u3089\u3057\u3044\u4e8b\u3092\u77e5\u3063\u305f\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u5fa9\u7fd2\u3082\u304b\u306d\u3066\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<pre><code>\uff3bgooglemap\uff3d\u9ad8\u5d0e\u99c5\uff3b\/googlemap\uff3d<\/code><\/pre>\n<p>\u6295\u7a3f\u753b\u9762\u3067\u3001\u4e0a\u8a18\u306e\u69d8\u306a\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b\u3068\u3001GoogleMap\u306b\u5909\u63db\u3055\u308c\u3066\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<br \/>\n\uff08\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306e\u30a8\u30b9\u30b1\u30fc\u30d7\u306e\u3057\u304b\u305f\u304c\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u62ec\u5f27\u304c\u5168\u89d2\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u306f\u534a\u89d2\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\uff09<\/p>\n<p>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u3067\u3059\u3002zip\u306b\u56fa\u3081\u3066\u30d7\u30e9\u30b0\u30a4\u30f3\u753b\u9762\u304b\u3089\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308c\u3070\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<p>googlemap.php<\/p>\n<pre class=\"lang:php decode:true \" >&lt;?php\n\/*\nPlugin Name: googlemapc_ode\nPlugin URI: http:\/\/shimz.me\/\nDescription: &quot;\u5165\u529b\u30b7\u30b9\u30c6\u30e0\u7528\u30d7\u30e9\u30b0\u30a4\u30f3\uff1agooglemap_code&quot;\nAuthor: Shimizu Masayuki\nVersion: 0.1\nAuthor URI: http:\/\/shimz.me\/\n*\/\n\n\/**\n * \u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306e\u8a2d\u5b9a\n *\/\nfunction googlemap_code($atts, $content = null) {\n    extract( shortcode_atts( array(\n        'width' =&gt; '100%',\n        'height' =&gt; '300px',\n    ), $atts ) );\n\n   $content  = &lt;&lt;&lt; EOF\n&lt;iframe frameborder=&quot;0&quot; scrolling=&quot;no&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; width=&quot;{$width}&quot; height=&quot;{$height}&quot; src=&quot;http:\/\/maps.google.co.jp\/maps?q={$content}&amp;z=15&amp;output=embed&quot;&gt;&lt;\/iframe&gt;\n&lt;p&gt;&lt;a href=&quot;http:\/\/maps.google.co.jp\/maps?q={$content}&amp;z=15&quot; target=&quot;_blank&quot; &gt;\u5927\u304d\u306a\u5730\u56f3\u3067\u898b\u308b&lt;\/a&gt;&lt;\/p&gt;\nEOF;\n\n    return $content;\n}\n\n\/**\n * \u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306b\u767b\u9332\n *\/\nadd_shortcode('googlemap','googlemap_code');\n\n?&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Web\u30c7\u30b6\u30a4\u30ca\u30fc\u306e\u305f\u3081\u306e\u3001PHP\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0Wo&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,35],"tags":[],"class_list":["post-329","post","type-post","status-publish","format-standard","hentry","category-php","category-wordpress"],"_links":{"self":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/329","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/comments?post=329"}],"version-history":[{"count":55,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/329\/revisions"}],"predecessor-version":[{"id":2490,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/329\/revisions\/2490"}],"wp:attachment":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media?parent=329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/categories?post=329"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/tags?post=329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}