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 - A Detailed Explanation
- SEO WordSpinner Plugin - A Killer SEO Plugin for WordPress
- Weather Forecasts for WordPress - WP Wunderground Plugin
- jQuery validator annoyances
Tag Cloud
Search WordPress Plugins Website Redesign Denver SEO Design Web Design Marketing Denver Javascript Shopping Cart Search Engine Optimization Google SEO Interspire Development Optimization CSS Code WordPress WordPress Development Links Nofollow Blogging WordPress SEO Interspire Shopping Cart Functions.php SEO WP Plugins Google eCommerce Domains Plugin
Tag Archives: Random Post
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