Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.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 Wordpress高级摘录-在';阅读更多';链接,使用GetBlogInfo_Php_Wordpress - Fatal编程技术网

Php Wordpress高级摘录-在';阅读更多';链接,使用GetBlogInfo

Php Wordpress高级摘录-在';阅读更多';链接,使用GetBlogInfo,php,wordpress,Php,Wordpress,我正试图在摘录的“阅读更多”链接中输出自定义图像 就像这样 我正在使用高级EXEPRT插件,因为它可以根据我的需要进行定制 这就是我如何在readmore链接中输出带有图像的摘录 <?php the_advanced_excerpt('length=120&use_words=0&no_custom=0&ellipsis=%26hellip;&read_more=read more <img src"' . get_bloginfo('templat

我正试图在摘录的“阅读更多”链接中输出自定义图像

就像这样

我正在使用高级EXEPRT插件,因为它可以根据我的需要进行定制

这就是我如何在readmore链接中输出带有图像的摘录

<?php the_advanced_excerpt('length=120&use_words=0&no_custom=0&ellipsis=%26hellip;&read_more=read more <img src"' . get_bloginfo('template_url') . '"/images/readmore-arrow.png" alt="" />&add_link=1'); ?>


但奇怪的是,它输出了这个readmore链接

<?php the_advanced_excerpt('length=120&use_words=0&no_custom=0&ellipsis=%26hellip;&read_more=read more <img src"' . get_bloginfo('template_url') . '"/images/readmore-arrow.png" alt="" />&add_link=1'); ?>

我似乎打破了图像位置的URL,并像这样输出它

<img alt="" readmore-arrow.png"="" images="" my-theme-name"="" themes="" wp-content="" wp="" mywebsitename.co.uk="" src"http:="">


有人能帮我修一下吗

谢谢




工作代码

<?php the_advanced_excerpt('length=120&use_words=0&no_custom=0&ellipsis=%26hellip;&rea‌​d_more=read more <img src="' . get_bloginfo('template_url') . '/images/readmore-arrow.png" alt="" />&add_link=1'); ?>

我不确定这是否能为您解决问题,因为我没有使用该插件,但您缺少
src
属性的
=
。我在这里添加了它:

<?php the_advanced_excerpt('length=120&use_words=0&no_custom=0&ellipsis=%26hellip;&read_more=read more <img src="' . get_bloginfo('template_url') . '"/images/readmore-arrow.png" alt="" />&add_link=1'); ?>

谢谢,伙计,我把事情搞砸了。我甚至在get_bloginfo php之后加了一个额外的语音标记。谢谢大家!<代码>