0
是否有辦法獲得Nivo Slider的當前幻燈片「標題」並將其顯示在另一個div中?獲取Nivo Slider當前幻燈片標題
<div id="slider">
<?php
$category = get_option('wpns_category');
$n_slices = get_option('wpns_slices');
?>
<?php query_posts('cat='.$category.'&posts_per_page=$n_slices'); if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php if(has_post_thumbnail()) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_post_thumbnail(); ?>
</a>
<?php endif ?> <?php endwhile; endif;?> <?php wp_reset_query();?>
</div>
要:在線路209 WP-NIVO-slider.php
變化