Php 在WordPress发布的我的缩略图中放置悬停标签
我一直坚持使用WordPress在我的缩略图帖子中为我的图像添加一个悬停标签。我怎么做?我的意思是,图像中悬停标签的文本框应该在哪里?我设法用wp_查询在我的页面中显示我所有的6个缩略图,现在我想在每个缩略图中放置一些悬停图像。我必须在哪里输入悬停图像以及如何输入 以下是显示缩略图的代码:Php 在WordPress发布的我的缩略图中放置悬停标签,php,html,css,wordpress,post,Php,Html,Css,Wordpress,Post,我一直坚持使用WordPress在我的缩略图帖子中为我的图像添加一个悬停标签。我怎么做?我的意思是,图像中悬停标签的文本框应该在哪里?我设法用wp_查询在我的页面中显示我所有的6个缩略图,现在我想在每个缩略图中放置一些悬停图像。我必须在哪里输入悬停图像以及如何输入 以下是显示缩略图的代码: <?php if( $offerBlog->have_posts() ) : ?> <div class="row cente
<?php
if( $offerBlog->have_posts() ) : ?>
<div class="row center-block">
<?php while ( $offerBlog->have_posts() ) : $offerBlog->the_post(); ?>
<div class="col-md-4 col-box">
<?php the_post_thumbnail(); ?>
<br>
<br>
<h4> <?php the_title(); ?></h4>
<?php the_content(); ?>
</div>
<?php endwhile; ?>
</div>
<?php endif; ?>
<?php wp_reset_postdata(); ?>
下面是我的代码的输出:
以下是我希望在每个缩略图中显示的内容: