PHPファイル内でのimage画像までのパス
<img src="<?php bloginfo('template_url'); ?>/images/i..." /> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/.." />
HTML内(固定ページ・投稿ページ)でのimage画像までのパス
function.phpに画像までのパスを表示させる関数を書いて、表示させる。
function img_replace_filter($content){
$content = str_replace(‘”images/’, ‘”‘ . ‘http://dddddd.jp/wp/wp-content/themes/twentyeleven’ . ‘/images/’, $content);
return $content;
}
add_filter(‘the_content’,’img_replace_filter’);
または、プラグインPHP Executionで投稿・固定ページにテンプレートタグでも大丈夫にする。
私の場合、スマホだけで画像が表示されなかったのですが、
スマホ表示用のプラグイン、WPtouch を入れており、 そのスマホテーマのBauhausというファイルの中のfunction.phpに、サイトように追加したfunction.phpと同じ関数(上記)のものを貼り、無事表示されました。