{"id":11,"date":"2008-05-28T23:26:25","date_gmt":"2008-05-29T06:26:25","guid":{"rendered":"http:\/\/www.jinmei.org\/blog\/?p=11"},"modified":"2008-06-11T22:02:59","modified_gmt":"2008-06-12T05:02:59","slug":"wordpress%e5%bc%95%e3%81%8d%e7%b6%9a%e3%81%8dtuning%e4%b8%ad","status":"publish","type":"post","link":"https:\/\/www.jinmei.org\/blog\/2008\/05\/28\/11","title":{"rendered":"WordPress\u5f15\u304d\u7d9a\u304dtuning\u4e2d"},"content":{"rendered":"<p>\u3053\u3093\u306a\u3082\u3093\u304b\u306a\u3001\u3068\u601d\u3063\u3066\u516c\u958b\u3057\u3066\u307f\u305f\u3082\u306e\u306e\u3001\u4f7f\u3044\u306f\u3058\u3081\u3066\u307f\u308b\u3068\u3084\u3063\u3071\u308a\u3044\u308d\u3044\u308d\u6c17\u306b\u306a\u308b\u70b9\u304c\u51fa\u3066\u304f\u308b\u306e\u3067\u3001\u3044\u307e\u3060\u3044\u308d\u3044\u308d\u624b\u76f4\u3057\u4e2d\u3002<\/p>\n<p><!--more--><\/p>\n<h3>\u305d\u306e1: search\u7d50\u679c\u306e\u51fa\u529b\u4fee\u6b63<\/h3>\n<p>\u7d20\u306eWordPress\u3060\u3068\u3001\u691c\u7d22\u7d50\u679c\u306eexcerpt\u304c\u5168\u6587\u8868\u793a\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3002\u3053\u308c\u306fwell known issue\u306e\u3088\u3046\u3067\u3001\u3050\u3050\u308b\u3068\u3059\u3050\u306b\u3044\u308d\u3044\u308d\u5bfe\u51e6\u6cd5\u304c\u898b\u3064\u304b\u308b\u3002<a href=\"http:\/\/www.techdego.com\/2007\/02\/mb_excerpt_plugin.php\">mb_excerpt()<\/a> \u3068\u304b<a href=\"http:\/\/eastcoder.com\/code\/wp-multibyte-patch\">WP Multibyte Patch<\/a> \u3068\u304b\u306eplugin\u3092\u4f7f\u3048\u3070\u3088\u3044\u3088\u3046\u3060\u3002\u3053\u308c\u3089\u306fphp\u306emultibyte extension\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308b\u306e\u3067\u3001FreeBSD ports\u304b\u3089php5-extensions\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u4e0a\u3067enable\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u3069\u3061\u3089\u3067\u3082\u52d5\u304f\u3088\u3046\u3060\u3063\u305f\u304c\u3001\u8a66\u3057\u305f\u9806\u5e8f\u306e\u6d41\u308c\u3067\u3068\u308a\u3042\u3048\u305a\u5f8c\u8005\u3092\u5229\u7528\u4e2d\u3002<\/p>\n<p>\u3053\u308c\u304c\u76f4\u3063\u305f\u3089\u4eca\u5ea6\u306f\u5225\u306a\u554f\u984c\u304c\u767a\u899a\u3002google maps\u7528\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u57cb\u3081\u8fbc\u3093\u3060\u8a18\u4e8b\u304c\u3042\u308b\u306e\u3060\u304c\u3001<\/p>\n<pre class=\"codefrag\">\r\n&lt;script type=\"text\/javascript\"&gt;\r\n\/\/&lt;![CDATA[\r\n        gmapinit();\r\n\/\/]]&gt;\r\n&lt;\/script&gt;\r\n<\/pre>\n<p>\u3053\u306e\u90e8\u5206\u304cWP Multibyte Patch\u306e<code>wp_trim_excerpt()<\/code>\u304b\u3089\u547c\u3070\u308c\u308b<code>strip_tags()<\/code>\u3067\u304d\u308c\u3044\u306b\u306f\u304c\u3055\u308c\u305a\u3001<code>\/\/<\/code>\u306e\u90e8\u5206\u304c\u6b8b\u3063\u3066\u3057\u307e\u3046(\u3053\u308c\u306f\u305f\u3076\u3093\u3082\u3068\u306e<code>the_excerpt()<\/code>\u3067\u3082\u540c\u3058)\u30022\u884c\u76ee\u306e\u5192\u982d\u90e8\u5206\u304ctag\u306e\u4e00\u90e8\u3067\u306f\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u6b8b\u3063\u3066\u3057\u307e\u3046\u306e\u304c\u3044\u3051\u306a\u3044\u3088\u3046\u3060\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u8d85ad-hoc\u306a\u304c\u3089<code>wp_trim_excerpt()<\/code>\u5185\u3067<code>strip_tags()<\/code>\u3092\u547c\u3093\u3067\u3044\u308b\u3068\u3053\u308d\u306e\u76f4\u5f8c\u306b\u4ee5\u4e0b\u3092\u8db3\u3057\u3066\u3044\u3044\u52a0\u6e1b\u306b\u89e3\u6c7a\u3055\u305b\u305f\u3002<\/p>\n<pre class=\"codefrag\">\r\n$text = str_replace('\/\/', '', $text);\r\n<\/pre>\n<p>Ad-hoc\u304b\u3064\u3053\u308c\u3060\u3068\u56f0\u308b\u5834\u9762\u3082\u3042\u308b\u306e\u306f\u308f\u304b\u3063\u3066\u306f\u3044\u308b\u304c\u3001\u5b9f\u7528\u4e0a\u5927\u304d\u304f\u56f0\u308b\u3053\u3068\u304c\u8d77\u304d\u308b\u307e\u3067\u306f\u3053\u308c\u3067\u898b\u3066\u898b\u306c\u3075\u308a\u3092\u3057\u3088\u3046\u2026<\/p>\n<h3>\u305d\u306e2: \u5199\u771f\u306ethumbnail\u306e\u30ec\u30a4\u30a2\u30a6\u30c8<\/h3>\n<p>thumbnail\u306f\u6a2a\u306b\u4e26\u3079\u305f\u304b\u3063\u305f\u306e\u3067\u5f53\u521d\u306f\u3053\u308c\u307e\u305fad-hoc\u306btable\u3092\u4f7f\u3063\u3066\u3054\u307e\u304b\u3057\u3066\u3044\u305f\u306e\u3060\u304c\u3001\u4eee\u306b\u3082v2.0\u3092\u540d\u4e57\u308b\u304b\u3089\u306b\u306f\u3084\u306f\u308a\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u554f\u984c\u306fCSS\u3067\u89e3\u6c7a\u3057\u306a\u3044\u3068\u3044\u304b\u3093\u3060\u308d\u3046\u3068\u3044\u3046\u3053\u3068\u3067\u5bfe\u51e6\u3057\u305f\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f\u3001display property\u3092&#8221;inline&#8221;\u306b\u3057\u305ful\u8981\u7d20\u3092\u5c0e\u5165\u3057\u3066\u5bfe\u5fdc\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306aCSS\u3092\u81ea\u524d\u3067\u7528\u610f\u3057\u3066\u3001<\/p>\n<pre class=\"codefrag\">\r\nul.thumbnail {\r\n    margin-top: 0.5ex;\r\n    margin-bottom: 0.5ex;\r\n    margin-right: 0.5ex;\r\n    margin-left: 0.5ex;\r\n    padding: 0;\r\n}\r\nul.thumbnail li {\r\n    display: inline;\r\n    list-style-type: none;\r\n    margin-left: 1px;\r\n    margin-right: 1px;\r\n    padding: 0;\r\n}\r\n<\/pre>\n<p>WP\u306etemplate\u5074\u306eheader.php\u3092\u3044\u3058\u3063\u3066\u305d\u308c\u3092\u8aad\u3080\u3088\u3046\u306b\u3057\u3001\u672c\u6587\u4e2d\u3067\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u4f7f\u7528:<\/p>\n<pre class=\"codefrag\">\r\n&lt;ul class=\"thumbnail\"&gt;\r\n  &lt;li&gt;&lt;a href=\"f1.jpg\"&gt;&lt;img src=... \/&gt;&lt;\/a&gt;&lt;\/li&gt;\r\n  &lt;li&gt;&lt;a href=\"f2.jpg\"&gt;&lt;img src=... \/&gt;&lt;\/a&gt;&lt;\/li&gt;\r\n  ...\r\n&lt;\/ul&gt;\r\n<\/pre>\n<p>\u3064\u3044\u3067\u306bborder\u307e\u308f\u308a\u3082\u5c11\u3057\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u3001\u671b\u307f\u901a\u308a\u306e\u30b9\u30bf\u30a4\u30eb\u306b\u306a\u3063\u305f\u3002google reader\u3068\u304b\u3067\u898b\u308b\u3068\u30b9\u30bf\u30a4\u30eb\u304c\u6d88\u3048\u3066\u3057\u307e\u3063\u3066\u307d\u3063\u3061\u4ed8\u304d\u306e\u7b87\u6761\u66f8\u304d\u98a8\u306b\u306a\u308b\u306e\u304c\u304b\u3048\u3063\u3066\u30c0\u30b5\u3044\u611f\u3058\u306a\u306e\u306f\u3044\u307e\u3044\u3061\u3067\u306f\u3042\u308b\u304c\u3002<\/p>\n<p>6\/11\u8ffd\u8a18: id\u3068class\u306e\u4f7f\u3044\u65b9\u304c\u4e0d\u9069\u5207\u3060\u3063\u305f(\u5bfe\u8c61\u8981\u7d20\u306f\u8907\u6570\u306b\u306a\u308b\u3053\u3068\u306e\u65b9\u304c\u591a\u3044\u306e\u3067class\u306e\u65b9\u304cbetter)\u306b\u6c17\u304c\u3064\u3044\u305f\u306e\u3067\u5f8c\u8005\u306b\u7d71\u4e00\u3002\u4f8b\u3082\u66f8\u304d\u63db\u3048\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306a\u3082\u3093\u304b\u306a\u3001\u3068\u601d\u3063\u3066\u516c\u958b\u3057\u3066\u307f\u305f\u3082\u306e\u306e\u3001\u4f7f\u3044\u306f\u3058\u3081\u3066\u307f\u308b\u3068\u3084\u3063\u3071\u308a\u3044\u308d\u3044\u308d\u6c17\u306b\u306a\u308b\u70b9\u304c\u51fa\u3066\u304f\u308b\u306e\u3067\u3001\u3044\u307e\u3060\u3044\u308d\u3044\u308d\u624b\u76f4\u3057\u4e2d\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7],"class_list":["post-11","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.jinmei.org\/blog\/wp-json\/wp\/v2\/posts\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jinmei.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jinmei.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jinmei.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jinmei.org\/blog\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":0,"href":"https:\/\/www.jinmei.org\/blog\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jinmei.org\/blog\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jinmei.org\/blog\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jinmei.org\/blog\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}