【发布时间】:2018-05-24 16:10:03
【问题描述】:
由于某种原因,我的特色图片的标题被附加到它们的链接中。我不知道为什么会这样……有什么想法吗?
“测试图像”是显示在图像旁边的文本。
<a href="http://localhost/mysite/test/" class="post-thumbnail" aria-hidden="true">
<img src="http://localhost/mysite/wp-content/uploads/ds/2017/12/sample2-1080xauto-c-default.jpg" class="featured-image tease-featured-image " alt="<span itemprop=" name"="">Test Image" />
</a>
显示的是帖子标题,而不是图片标题。删除图像标题不会做任何事情。更改帖子的标题会更改文本。
【问题讨论】:
-
我认为生成的 HTML 格式不正确。您是否正确发布了生成的 html?如果有相同的帖子,您是否进行了任何代码更改。它将帮助我们理解和调试问题。
标签: wordpress