About Katz Web Services
Katz Web Services is a web development company operated by Zack Katz.
-
Plugin Support Topics
Popular Posts
- Simple Vertical Align Plugin for jQuery
- How to Create a Custom RSS Feed in WordPress in 12 Lines of Code
- Contact Form 7 Modules - A Plugin
- iContact Widget for WordPress
- Gravity Forms Shortcode Explained
- SEO WordSpinner Plugin - A Killer SEO Plugin for WordPress
- Weather Forecasts for WordPress - WP Wunderground Plugin
- jQuery validator annoyances
Tag Cloud
WordPress SEO Interspire Shopping Cart WordPress Google SEO Links Domains Blogging Marketing Denver SEO eCommerce Web Design Plugin Code Shopping Cart Nofollow SEO WP Plugins Design Javascript Google WordPress Development Website Redesign Interspire Development WordPress Plugins Search Engine Optimization Functions.php Optimization Search CSS Denver
Tag Archives: query_posts
How to Display a Random Testimonial or Post in WordPress
Set up a testimonials category — no need for a plugin.
There are a couple of plugins designed specifically for testimonials, but I didn’t want to use them; they use their own databases, and don’t keep with WordPress’ simplicity. If possible, the best way to work with WordPress is to use it’s built-in functionality.
I also wanted to have the testimonials as a category in WP, rather than as a separate plugin. This code will work for any type of category, not just a testimonial.
Here’s how to create a random post item in your sidebar:
Posted in Code
Tagged Categories, Code, How To, Plugins, Posts, query_posts, Random Post, Testimonials, WordPress, WordPress Development
28 Comments