How to show random posts after current post

March 23rd, 2009 Comments Off on How to show random posts after current post Posted in Wordpress, Wordpress MU

Difficulty Level:

dif_low

It is very useful to show some random posts after the current reading post. You online need one litle function for that:

More »

Change autosave interval and limit revisions

March 16th, 2009 Comments Off on Change autosave interval and limit revisions Posted in Wordpress

Difficulty Level:

dif_low

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:

  1. 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:

More »

How to check if your main blog page is being displayed.

March 12th, 2009 Comments Off on How to check if your main blog page is being displayed. Posted in Wordpress

Difficulty Level:

dif_low

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.

More »

How to show 6 posts from each category on index page

March 9th, 2009 Comments Off on How to show 6 posts from each category on index page Posted in Wordpress

Difficulty Level:

dif_low

On this tutorial I will show you how to make this on your wordpress index page:

cat_view

If you wish to show a defined number of posts from each category on your index page, you can do it like this:

More »

How to check if your Apache Webserver is still running

March 5th, 2009 Comments Off on How to check if your Apache Webserver is still running Posted in Bash Scripting, Linux

Difficulty Level:

dif_low

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?

More »

How to create a gallery of your available themes?

February 26th, 2009 Comments Off on How to create a gallery of your available themes? Posted in Wordpress MU

Difficulty Level:

dif_low-mid

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

February 23rd, 2009 Comments Off on WordPress Theme Preview Maker Posted in Tools

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”!

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 »

How to use a plugin function in a post?

February 17th, 2009 Comments Off on How to use a plugin function in a post? Posted in Wordpress MU

Difficulty Level:
dif_low-mid

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 »

How to remove post revisions?

February 16th, 2009 Comments Off on How to remove post revisions? Posted in Wordpress MU

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

February 11th, 2009 Comments Off on Change WordPress Login Logo Posted in Wordpress MU

At first I would like to show you, how to replace the standard wordpress logo on your login page.

wp_login_form

This is very simple. All we have to do is to replace the background image at <h1> stylesheet. Let’s go: More »

My-Guide Interessante Guides: LinuxGitte kochtSerbienMontenegroSparen