0
我搜索和搜索,唯一相對於這種情況發現的事實是,jQuery在1.6以下,我相信wordpress的方式已經超過了....我在Wordpress網站上構建了一個jShowOff Content Rotator,並且我想要有數字滑動鏈接,因爲我默認顯示它,但是在每個鏈接中顯示'undefined'....我試着通過製作計數器來嘗試一種解決方法,給標題的櫃檯,作品像一個魅力,但當你把鼠標放在內容輪播它彈出櫃檯作爲標題xD看起來很醜陋....任何想法?這裏是代碼:jShowOff - 數字鏈接顯示'undefined'(在wordpress中)
<div id="recentes">
<?php $my_query = new WP_Query('category_name=oficiais&posts_per_page=7');
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate[] = $post->ID; ?>
<div><p>
<?php the_post_thumbnail('recent-thumbnail',array('title' => "")); ?>
<span class="recentes_tit"><?php the_title(); ?></span><br /><p><?php $myExcerpt = get_the_excerpt();
$tags = array("<p>", "</p>");
$myExcerpt = str_replace($tags, "", $myExcerpt);
$myExcerpt = str_replace("<br />", " ", $myExcerpt);
echo $myExcerpt;
?></p class="content_readmore"><a href="<?php the_permalink(); ?>">Ver artigo</a></p></div>
<?php endwhile; ?>
</div>
<script type="text/javascript">
jQuery(document).ready(function(){ jQuery("#recentes").jshowoff({
autoPlay:true,
changeSpeed:1500,
controls:true,
effect:"slideLeft",
hoverPause:true,
speed:4500,
}); });
</script>
只爲信息,假設我叫jShowOff CSS和腳本X)預先感謝您=)