1
如何在bootstrap popover中显示缩略图wordpress?在bootstrap popover中显示缩略图wordpress
我用the_post_thumbnail
但这个功能固有地回声<img>
。至于你说的产生的图像不酥料饼
<?php
if (have_posts()) : while (have_posts()) : the_post();
/*********display the_post_thumbnail in data-content of popover *********/
echo '<a href="'.get_permalink().'" rel="popover" data-title="'.get_the_title().'" data-content="'.the_post_thumbnail('full').'">';
the_title();
echo '</a>';
endwhile; endif;
wp_reset_query();
?>