<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>フォーラム タグ: image</title>
<link>http://ja.forums.wordpress.org/</link>
<description>フォーラム タグ: image</description>
<language>en</language>
<pubDate>Wed, 25 Nov 2009 18:37:55 +0000</pubDate>

<item>
<title>匿名 :  "WP2.6 uploadsディレクトリを変更している場合の画像ファイルのアップロード"</title>
<link>http://ja.forums.wordpress.org/topic/502#post-2282</link>
<pubDate>Fri, 25 Jul 2008 01:50:41 +0000</pubDate>
<dc:creator>匿名</dc:creator>
<guid isPermaLink="false">2282@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;自己解決しましたが、参考になれば。&#60;/p&#62;
&#60;p&#62;「設定」-「その他の設定」にて、&#60;strong&#62;アップロードするファイルの保存場所&#60;/strong&#62;を変更している場合、2.5.1まで正常に利用できた画像の表示が、2.6でできなくなっています。&#60;/p&#62;
&#60;p&#62;具体的な症状&#60;br /&#62;
・メディアアップロードでアップロードすると、ファイルのアップロードには成功する&#60;br /&#62;
・が、リンクのURLがDefaultのwp-content/uploadsとなり、画像が正しくリンクされない&#60;br /&#62;
・画像は表示されず、captionだけが表示され、クリックすると404 not found&#60;/p&#62;
&#60;p&#62;応急処置&#60;br /&#62;
・エディタをHTMLに変更し、2カ所のwp-content/uploadsを変更する&#60;/p&#62;
&#60;p&#62;根本的処置&#60;br /&#62;
&#60;a href=&#34;http://trac.wordpress.org/attachment/ticket/7305/image_url.patch&#34; rel=&#34;nofollow&#34;&#62;http://trac.wordpress.org/attachment/ticket/7305/image_url.patch&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;wp-includes/functions.php&#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;1490行目に挿入&#60;code&#62;$path = str_replace( ABSPATH, &#38;#39;&#38;#39;, trim( $upload_path ) );&#60;/code&#62;&#60;/li&#62;
&#60;li&#62;1492行目を変更&#60;code&#62;$url = trailingslashit( $siteurl ) . $path;&#60;/code&#62;&#60;/li&#62;
&#60;/ul&#62;
&#60;p&#62;以上です。
&#60;/p&#62;</description>
</item>
<item>
<title>BB7 :  "themesのimageに入っている画像"</title>
<link>http://ja.forums.wordpress.org/topic/478#post-2214</link>
<pubDate>Sun, 20 Jul 2008 08:57:38 +0000</pubDate>
<dc:creator>BB7</dc:creator>
<guid isPermaLink="false">2214@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;mizube さんありがとうございます&#60;/p&#62;
&#60;p&#62;stylesheet_directory が style.css の「置いてある」ディレクトリで&#60;br /&#62;
template_directry は template 「自体の」ディレクトリ&#60;br /&#62;
（なのでどちらでも正解なワケですね）&#60;br /&#62;
ということが理解できました。&#60;br /&#62;
2.5.1からのユーザーなので特別に気にしなくても良いのですね。&#60;/p&#62;
&#60;p&#62;わかりやすい解説どうもありがとうございました。
&#60;/p&#62;</description>
</item>
<item>
<title>mizube :  "themesのimageに入っている画像"</title>
<link>http://ja.forums.wordpress.org/topic/478#post-2187</link>
<pubDate>Fri, 18 Jul 2008 14:27:40 +0000</pubDate>
<dc:creator>mizube</dc:creator>
<guid isPermaLink="false">2187@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;stylesheet_directory は style.css のあるディレクトリ、 template_directory はテンプレートのディレクトリになります。&#60;/p&#62;
&#60;p&#62;通常は同じディレクトリになりますが、 style.css の Template: にて、以下のように style.css とは別のディレクトリをテンプレートのディレクトリとして指定している場合には、両者の出力結果が異なってきます。&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;/*
Template Name: Your Theme
Description: your-theme ディレクトリにこの style.css が設置されているとします。
Author: You
Template: default
*/&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;strong&#62;template_directory&#60;/strong&#62; : default がテンプレートのディレクトリに指定されているので&#60;br /&#62;
&#60;a href=&#34;http://example.com/wp-content/themes/default&#34; rel=&#34;nofollow&#34;&#62;http://example.com/wp-content/themes/default&#60;/a&#62;&#60;br /&#62;
&#60;strong&#62;stylesheet_directory&#60;/strong&#62; : style.css が設置されているディレクトリなので&#60;br /&#62;
&#60;a href=&#34;http://example.com/wp-content/themes/your-theme&#34; rel=&#34;nofollow&#34;&#62;http://example.com/wp-content/themes/your-theme&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;ただし、 stylesheet_directory は WP 2.3.1 から&#60;em&#62;非推奨&#60;/em&#62;になっているはずなので、 WP 2.5.1 をお使いの BB7 さんの場合は template_directory で正解です。
&#60;/p&#62;</description>
</item>
<item>
<title>BB7 :  "themesのimageに入っている画像"</title>
<link>http://ja.forums.wordpress.org/topic/478#post-2179</link>
<pubDate>Fri, 18 Jul 2008 09:53:16 +0000</pubDate>
<dc:creator>BB7</dc:creator>
<guid isPermaLink="false">2179@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;出来ました！&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;img src=&#38;quot;&#38;lt;?php bloginfo(&#38;#39;template_directory&#38;#39;);?&#38;gt;/images/aaa.gif&#38;quot; width=&#38;quot;10&#38;quot; height=&#38;quot;10&#38;quot; alt=&#38;quot;あああ&#38;quot;/&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;&#38;lt;img src=&#34;&#60;/p&#62;
&#60;p&#62;というが抜けていました&#60;br /&#62;
テンプレートタグもあまり理解できていなかったのですが&#60;br /&#62;
すこし使い方がわかりました&#60;br /&#62;
ありがとうございます&#60;br /&#62;
ところで&#60;/p&#62;
&#60;p&#62;bloginfo('stylesheet_directory')というのは&#60;/p&#62;
&#60;p&#62;bloginfo('template_directory')でも表示できたのですが&#60;/p&#62;
&#60;p&#62;どちらでも大丈夫なんですよね？
&#60;/p&#62;</description>
</item>
<item>
<title>BB7 :  "themesのimageに入っている画像"</title>
<link>http://ja.forums.wordpress.org/topic/478#post-2178</link>
<pubDate>Fri, 18 Jul 2008 09:32:03 +0000</pubDate>
<dc:creator>BB7</dc:creator>
<guid isPermaLink="false">2178@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;satosanpe様早いお返事ありがとうございます&#60;br /&#62;
しかしながら&#60;/p&#62;
&#60;p&#62;&#38;lt;?php bloginfo('stylesheet_directory');?&#38;gt;/images/aaa.gif&#34; width=&#34;10&#34; height=&#34;10&#34; alt=&#34;あああ&#34;/&#38;gt;&#60;/p&#62;
&#60;p&#62;をそのままコピーして試してみたのですが&#60;br /&#62;
コードを書いた場所には画像は表れず&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://localhost:8888/wordpress/wp-content/themes/abc/images/aaa.gif&#34; rel=&#34;nofollow&#34;&#62;http://localhost:8888/wordpress/wp-content/themes/abc/images/aaa.gif&#60;/a&#62;&#34; width=&#34;10&#34; height=&#34;10&#34; alt=&#34;あああ&#34;/&#38;gt;&#60;/p&#62;
&#60;p&#62;という記述がそのまま出てしまいます&#60;br /&#62;
そのまま貼るだけではダメなのでしょうか？
&#60;/p&#62;</description>
</item>
<item>
<title>satosanpe :  "themesのimageに入っている画像"</title>
<link>http://ja.forums.wordpress.org/topic/478#post-2176</link>
<pubDate>Fri, 18 Jul 2008 04:36:03 +0000</pubDate>
<dc:creator>satosanpe</dc:creator>
<guid isPermaLink="false">2176@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;&#60;code&#62;&#38;lt;?php bloginfo(&#38;#39;stylesheet_directory&#38;#39;);?&#38;gt;/images/aaa.gif&#38;quot; width=&#38;quot;10&#38;quot; height=&#38;quot;10&#38;quot; alt=&#38;quot;あああ&#38;quot;/&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;これで良いのでは？
&#60;/p&#62;</description>
</item>
<item>
<title>BB7 :  "themesのimageに入っている画像"</title>
<link>http://ja.forums.wordpress.org/topic/478#post-2172</link>
<pubDate>Fri, 18 Jul 2008 01:21:24 +0000</pubDate>
<dc:creator>BB7</dc:creator>
<guid isPermaLink="false">2172@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;Themeを作っているのですが&#60;br /&#62;
サイドバーへimageに入っている画像を表示させたいと思っています&#60;br /&#62;
相対パスで表示したいと思っているのですが&#60;br /&#62;
なかなか表示してくれません&#60;/p&#62;
&#60;p&#62;&#38;lt;img src=&#34;/images/aaa.gif&#34; width=&#34;10&#34; height=&#34;10&#34; alt=&#34;あああ&#34; /&#38;gt;&#60;/p&#62;
&#60;p&#62;これでは違うでしょうか？&#60;br /&#62;
絶対パスでは上手く表示するのですが&#60;/p&#62;
&#60;p&#62;ttp://localhost:8888/wordpress/wp-content/themes/abc/images/aaa.gif
&#60;/p&#62;</description>
</item>

</channel>
</rss>
