0

下面是我的 testimonials.php 文件。我想改变推荐的旋转速度,但是我不确定要写什么代码。感谢您的帮助!

    <?php
/**
 * Testimonials
 *
 */
 ?>
<div class="testimonials sixteen columns alpha omega marT20 marB40 padT40 padB20">
    <?php
        $args = array(
            'post_type' => 'testimonial', 
            'order' => 'DSC',
            'posts_per_page' => 100
        );
        $query = new WP_Query($args); ?>

    <ul class="testimonial-content">

        <?php while ( $query->have_posts() ) : $query->the_post(); ?>

        <li>
            <h5 class="marB8"><?php the_content(); ?></h5>
            <h5 class="marB0"><strong><?php the_title(); ?></strong></h5>
        </li>

        <?php endwhile; wp_reset_query(); ?>

    </ul>
</div>
4

1 回答 1

0

从类名来看testimonial-content,您可能正在使用 WordPress 推荐小部件。在此处查看最后的设置:

推荐小部件屏幕截图

如果您需要以编程方式更改它,请在/wp-content/plugins/testimonials-widget/.

于 2012-10-22T17:58:00.377 回答