Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/EmptyTag/132.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Bootstrap 3.0旋转木马wordpress gallery post格式_Php_Wordpress_Twitter Bootstrap_Gallery_Carousel - Fatal编程技术网

Php Bootstrap 3.0旋转木马wordpress gallery post格式

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

我正在尝试使用Bootstrap3.0Carousel在index.php中显示图库帖子格式。我正在尝试为gallery post中的每个foto构建一个输出函数:

<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 . '">';