I'd like to expand on this
by pulling one random testimonial and have it appear in specific page bodies (not widgets). I
My testimonials are individual blog posts with custom fields pulled to one review page. I was hoping this code would work:
<?php query_posts('category_name=Testimonials&showposts=1&offset=0&orderby=rand'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<?php endwhile; endif; ?>
But it doesn't. I also tried replacing category name with category id=36 . No good.