这是我的网站:www.skuar.com 问题是当你点击任何缩略图时,它每次都会在模态中显示相同的帖子。
我的代码是否正确?
这是我的wordpress循环
<div id="loop">
<?php if (have_posts()) : ?>
<div id="i-scroll">
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
</div>
<?php else : ?>
<p class="nothing">Nothing</p>
<?php endif; ?>
</div>
这是我的内容&#39;
<div id="post">
<a href="#" data-featherlight="#featherlight">
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail('post-thumbnails');
}
?>
</a>
<iframe class="lightbox" src="<?php the_permalink(); ?>" width="900" height="600" id="featherlight" style="border:none;" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>
在我的内容中,我尝试显示帖子 但它没有用......
谢谢!