0
在我的滑块(s3Slider JQuery)调用的那一刻,显示最后5个帖子。它从标有“拇指”的自定义字段抓取图像。在滑块中过滤帖子
我希望滑块只能调用在'thumb'自定义字段中具有值的图像。这可能吗?
当前查询...提前
<?php
$my_query = new WP_Query('showposts=5');
while ($my_query->have_posts()) : $my_query->the_post();
?>
<li class="sliderImage"> <a href="<?php the_permalink() ?>" rel="bookmark"> <img class="featimg" src="<?php echo get_post_meta($post->ID, 'thumb', true) ?>" alt="<?php the_title(); ?>" />
<span class="des"><h1><?php the_title(); ?></h1><?php the_excerpt(); ?></span>
</a>
</li>
<?php endwhile; ?>
感谢。