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
- WordPress Content Spinner Plugin - SEO WordSpinner
- jQuery validator annoyances
- Weather Forecasts for WordPress - WP Wunderground Plugin
Tag Cloud
Denver Design Optimization Links Search Interspire Shopping Cart Shopping Cart Web Design Google WordPress Plugins Code Website Redesign Domains Plugin Marketing Interspire Development CSS Functions.php WordPress Search Engine Optimization Google SEO Blogging Nofollow Denver SEO WP Plugins SEO WordPress SEO WordPress Development eCommerce Interspire Customization
Tag Archives: 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
How to View All (or more) Posts at once in WordPress Administration
Here’s the deal: I wanted to be able to temporarily see all the posts at once in the WordPress Administration, so I went into the wp-admin folder, and poked around, and became frustrated: it wasn’t that simple!
Go to /wp-admin/includes/post.php and scroll to line 517. You will see
wp("post_type=post&what_to_show=posts$post_status_q&posts_per_page=15&order=$order&orderby=$orderby");
Change the posts_per_page value to whatever you want it to be. Note: deleting the code will not let you view all posts.
WARNING: I don’t ever like to modify the default WordPress files, because when they get updated, you’ll be screwed. This is a only a temporary fix. It will not last if you update WordPress.
Posted in Code, WordPress
Tagged admin, post.php, Posts, View All, WordPress, WP-Admin, wp-includes
2 Comments