if ( function_exists( 'meteor_slideshow' ) ) {
$slug = basename(get_permalink());
meteor_slideshow('' . $slug. '');
}
the_content('
' . get_the_title() . '
');?>
我有一个post loop(index.php),它显示了三个帖子链接作为标题,在它们之上有一个基于帖子的slug的幻灯片.
while ($nuotraukos->have_posts()) : $nuotraukos->the_post();
$do_not_duplicate = $post->ID; ?>
if ( function_exists( 'meteor_slideshow' ) ) {
$slug = basename(get_permalink());
meteor_slideshow('' . $slug. '');
}
the_content('
?>
流星幻灯片本身有一个循环,我假设它在第一次查询后取消了后循环.这就是为什么它只打印出一个标题(但显示三次),你可以在http://studioglamour.co.uk中看到它.
问题是我需要在幻灯片下方显示三个不同的链接,但不知道如何解决这个问题.
最佳答案 尝试
$slug = basename(get_permalink($nuotraukos->post->ID));
...
the_content('