Hi,
I am new to PHP and using Wordpress and need some assistance.
The following website uses testimonials on its homepage at the bottom, and I can't figure out how to slow the speed of them down.
Can someone please help me figure this out? Here is the code that seems to reference these testimonials:
<div class="testimonial_home">
<h3>
<a href="<?php echo get_permalink(get_option('dtbaker_testimonial_main_category_page'));?>">Testimonials</a>
</h3>
<script type="text/javascript">
jQuery(function(){
jQuery('.testimonial_home .text').cycle();
});
</script>
<div class="text">
<?php
$args = array(
'post_type' => 'testimonial',
'numberposts' => -1,
);
$all_testimonials = get_posts($args);
foreach($all_testimonials as $key=>$val){
$display_on_home_page = get_post_meta($val->ID,'_dtbaker_testimonial_home',true);
if($display_on_home_page != 'yes'){
unset($all_testimonials[$key]);
}
}
foreach($all_testimonials as $val){
$testimonial_data = get_page($val->ID);
?>
<div>
<?php echo nl2br(get_post_meta($val->ID,'_dtbaker_testimonial_summary',true));?>
<br/>
<em><strong><a href="<?php echo get_permalink($val->ID);?>"><?php echo get_post_meta($val->ID,'_dtbaker_testimonial_author',true);?></a></strong></em>
</div>
<?php } ?>
</div>
</div>
<!--end testimonial-->