How to show random posts after current post
Difficulty Level:
![]()
It is very useful to show some random posts after the current reading post. You online need one litle function for that:
Change autosave interval and limit revisions
Difficulty Level:
![]()
Today we will show you how to change auto save time interval in wordpress and how to limit post revisions. This is very simple. You only have to change your wp-config.php
To change auto save interval you have to put this line in your wp-config.php:
- define(’AUTOSAVE_INTERVAL’, [DURATION_IN_SECONDS]);
Replace [DURATION_IN_SECONDS] with your desired number of seconds.
To limit revision posts you have to put this line into your wp-config.php:
How to check if your main blog page is being displayed.
Difficulty Level:
![]()
Sometimes it is usefull to display other information on your main blog page. WordPress provides a conditional tag called “is_home()”. This tag detects if you are on the main blog page, so you are able to display other or more information on the main blog page.
How to show 6 posts from each category on index page
Difficulty Level:
![]()
On this tutorial I will show you how to make this on your wordpress index page:
If you wish to show a defined number of posts from each category on your index page, you can do it like this:
How to check if your Apache Webserver is still running
Difficulty Level:
![]()
If you have a apache webserver running on a linux machine sometimes it happens that the webserver crashs. This could have many reasons, but still there is the problem your site isn’t reachable. How can we solve this problem?
How to create a gallery of your available themes?
Difficulty Level:
![]()
Hello and welcome to a new small tutorial about wordpress-mu plugins. This tutorial is build on a previous tutorial “How to use a plugin function in a post?“. The main focus is to how to create a nice table to present your themes in a gallery.
So this is what you need:
More »
WordPress Theme Preview Maker
Do you have a WordPress Theme collection? Have you ever tried to upload more than 10 themes on your server just to view the thumbnails? This produces unnecessary traffic, waste your time and takes a while until WordPress gets the thumbnails. One other way to see all thumbnails is to open each directory and take a look on every screenshot image. Is this what you do? Yes?! Are you kidding?
I was looking for a solution to crack this problem. Unfortunately I didn’t found a anything appropriate. So I created a simple tool. This tool scans a directory which contains your theme collection and creates a HTML page with all thumbnails. So I don’t have to upload all themes to my server only to look over all thumbnails. I call it “WordPress Theme Preview Maker”!
You can download and use “WordPress Theme Preview Maker” for free. You can share it with your friends or others. Do not SELL! More »
Tags: download, freeware, Preview, Screenshots, Themes, Thumbnails, Tool, Wordpress, Wordpress MU, wpmu
How to use a plugin function in a post?
Difficulty Level:
Today we will show you how to use your own plugin function in a post.
Sometimes you want to add special content to your post, but there is no wordpress function available. An easy way to solve this problem is to write your own function, which will do what you want and include it into your post with a special tag. In our example we will use a function which shows a list of all available themes.
In four small steps we will reach our goal:
More »
Tags: add_filter, add_filter('the_content', call, function, hook, plugin, post, replace, tag, the_content
How to remove post revisions?
We will show you today how to remove existing post revisions from all blogs. This is a very simple about 20-LOC-script (LOC = Lines Of Code)
How should it work?
- Create a menu entry
- Check if the user has enough rights to run this script
- Get a list of all blogs
- Go to each post table and delete posts marked as “revision”
Create a menu entry
First you have to create a file named “mg_clean_revisions.php”. Open the file to put some code into it. At first we need a hook which will be called when you access the admin menu. This hook should run a function which creates a menu entry. More »
Change WordPress Login Logo
At first I would like to show you, how to replace the standard wordpress logo on your login page.
This is very simple. All we have to do is to replace the background image at <h1> stylesheet. Let’s go: More »






