yahoo!のapiを使ってwordpressに画像を表示させたいのですが、下記のphpコードを使っても画像が表示されません。どこか間違っていますか?
php
1$html = ' <tr><th>店舗名</th><th>読み</th><th>電話番号</th><th>住所</th><th>路線</th><th>最寄駅</th><th>PCUrl</th><th>店舗画像</th></tr> 2 <tr><td>%1$s</td><td>%2$s</td><td><a href="tel:%3$s">%4$s</a></td><td>%5$s</td><td>%6$s</td><td>%7$s</td><td><a href="%8$s">サイトはこちら</a></td><td>%9$s<p style="text-align:center;"><img src="$url" alt="画像" width="5" height="5"></td></tr>'; 3 $i = 1; 4 5foreach ( $xml->Feature as $key => $item ) { 6 7 printf( $html, $item->Name, $item->Property->Yomi, str_replace("-", "", $item->Property->Tel1), $item->Property->Tel1, $item->Property->Address, $item->Property->Station->Railway, $item->Property->Station->Name . '駅', $item->Property->Detail->PcUrl1, $item->Property->Detail->Image1);
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/05/26 07:01
2016/05/26 07:04
2016/05/26 07:08
2016/05/26 08:33
2016/05/26 09:10