我的頭排隊jquery-ui-accordion
工作,包括下面的函數來激活它:無法獲得jQuery的手風琴爲WordPress的職位
$(function() {
$("#accordion").accordion();
});
下面是HTML是如何設置的。輸出只是一個沒有任何手風琴功能的常規WordPress帖子列表。我希望它可以讓標題變得可點擊。有人能幫我弄清楚我做錯了什麼嗎?
<?php get_header();?>
<section id="content">
<h2>Our Latest Videos</h2>
<section id="latest-videos" class="video-archive">
<section id="accordion">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article class="entry" id="post-<?php the_ID(); ?>">
<section class="description">
<h3><?php the_title(); ?></h3>
<div>
test test test
</div>
</section>
</article>
<?php endwhile; ?>
<?php endif; ?>
</section>
</section>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
謝謝,現在完美的作品。 – J82