Excel’s Right Function

Excel makes it easy to find the left part of a string with it’s in built Right function.
Read More >

Excel’s Left Function

Excel makes it easy to find the left part of a string with it’s in built Left function.
Read More >

Configuring WordPress’s permalink structure

Poor Link Structure

If you use WordPress then I’m sure that you’re aware that you can change the structure of the URL’s that WordPress creates. No?

Well I’m glad I wrote this post then.

On some blogs you will see URL’s that look kind of like this

http://smileyhappycoder.co.uk/?p=85

Well to be honest, and I’m sure you’ll agree, that’s not too pretty to look at. And worse, what would Google and other search engines make of it? Not a lot is the answer. Read More >

How to put WordPress into maintenance mode manually

Sometimes you’d like to put your wordpress blog into maintenance mode for a while. Say you’re doing a crucial update and you want to take the site down just for a few seconds. Here’s how to do it.

  1. Log into your FTP site and browse the the site’s home folder.
  2. Create a new file called “.maintenance”
    Don’t include the quotes and ensure you include the dot at the start
  3. Open up that file and add the following code to it
<?php $upgrading = time(); ?>

So now your site should be in maintenance mode for a while or basically until you remove the file.

The function uses the following sum to work out how long to stay in maintenance mode for

The time now = The time specified – 10 minutes

So in the above example when we are using the time() function the sum will always be within 10 minutes.

If for some reason you’d like to take your site down until a specified time you can do that by adding a time to the function.

<?php $upgrading = '123123123' ?>

In the above example 123123123 is the unix time stamp for the time you’d like to site to come back to life minus 10 minutes.

Manually take WordPress out of maintenance mode

So we’ve all been there.

You have just logged into your WordPress dashboard and there are a couple of plugin updates showing.

You dutifully click the plugins section and then choose to update the selected plugins. The little spinning doughnut starts whizzing away as if something is happening.

You go away and make a drink, have a natter to your other half and come back to the computer, the spinning doughnut is still doing it’s thing.

So the update has failed but there is nothing you can do. Your nice shiny WordPress blog is stuck in maintenance mode. Every single page you try to view shows the big dirty message.

Briefly unavailable for scheduled maintenance. Check back in a minute.

Read More >