Php Bootstrap 3.0旋转木马wordpress gallery post格式
我正在尝试使用Bootstrap3.0Carousel在index.php中显示图库帖子格式。我正在尝试为gallery post中的每个foto构建一个输出函数:Php Bootstrap 3.0旋转木马wordpress gallery post格式,php,wordpress,twitter-bootstrap,gallery,carousel,Php,Wordpress,Twitter Bootstrap,Gallery,Carousel,我正在尝试使用Bootstrap3.0Carousel在index.php中显示图库帖子格式。我正在尝试为gallery post中的每个foto构建一个输出函数: <div class="item"> <img src="http://placehold.it/1500X500"> </div> 问题是这个函数打印图像的url,但我不知道如何为每个图像添加html代码 有什么想法吗? 提前感谢//我们已经准备好了 // Imprimimos l
<div class="item">
<img src="http://placehold.it/1500X500">
</div>
问题是这个函数打印图像的url,但我不知道如何为每个图像添加html代码
有什么想法吗?
提前感谢//我们已经准备好了
// Imprimimos la lista de fotos con el formato deseado
echo '<img src="' . $fotos . '">';
回声';
必须是:echo''我试过了,但转盘不工作。我想我也需要图片标题和标题:鼻涕工作!对于我使用该函数检索的每个url,我需要这个输出。。。它应该很容易适应您的需要-刷上PHP的基础知识(特别是字符串连接)。我相信解决方案是如此简单,但我真的陷入困境:(我要寻找字符串连接,并尝试解决它!谢谢!
// Imprimimos la lista de fotos con el formato deseado
echo '<img src="' . $fotos . '">';