php function_exists('basename'),php – WordPress循环无法完成帖子的查询

我有一个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('

' . get_the_title() . '

');

?>

流星幻灯片本身有一个循环,我假设它在第一次查询后取消了后循环.这就是为什么它只打印出一个标题(但显示三次),你可以在http://studioglamour.co.uk中看到它.

问题是我需要在幻灯片下方显示三个不同的链接,但不知道如何解决这个问题.

最佳答案 尝试

$slug = basename(get_permalink($nuotraukos->post->ID));

...

the_content('

' . get_the_title($nuotraukos->post->ID) . '

');
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值