How to remove the featured post large image in WordPress TwentyThirteen Theme

Very annoying. So easy to remove. If you would like to remove the header post image which is the large image that now appears at the top of each individual blog post as set by the ‘featured image’, all you have to do is head to your content.php file and delete / comment out the following lines:

<div class="entry-thumbnail">
    <?php the_post_thumbnail(); ?>
</div>

Easy peasy.

WordPress: My Category & Tags disappeared – How to fix missing categories!

This was a new one to me, I’ve run hundreds of wordpress sites over the years and only today did I get this one.

Problem: Missing Categories from wordpress posts… IE if you view each blog post on the site, you can see that each post is ‘uncategorized’ and therefore being out of sync. BUT, you can still browse by URL to the category and tag pages just fine – which is the odd thing. If you log into the wp-admin you can see that there are no categories there at all, but if you try and add a new one with the same slug name it’ll error and tell you there is one. Super Odd.

Anyway – after much research around the web I found the following advice which worked for me.
” In my case, the issue was that my /tmp/ dir on my server, which is its own partition, was full. In my case, I noticed this by running df -h.”

I contacted my hosting provider and they responded saying that they had a problem with their tmp directory earlier… and now it’s fixed.

That is the first course of action – most people saying the hosting company sorted it for them / or that it was fixed automatically in due course.

In my opinion – just get in contact with your hosting provider and let them know.

Let me know how it goes :)

WordPress: Is your is_front_page() not working in your side bar?

If you’re modifying your sidebar in the wordpress sidebar and can’t get your is_front_page() or is_home() working… try adding a reset query just before. Worked for me.

IE I was adding a advert that would only show on the homepage of the wordpress blog, rather than throughout the entire website this should work fine. [Use the code at your own risk etc etc]

Automatic backup of you WordPress database – A decent plugin

I’ve been using the WP-DBManager plugin for over a year now, and it has reliably sent a copy of my database to me each morning at 8am – straight to my inbox. When you look after a million WordPress sites (I think I look after about 15-20 at the moment) this plugin is a surefire lifesaver. Don’t forget you still need to backup you files on your server, and don’t forget to backup your uploads folder… some people always forget this one!

Anyway – a worthwhile install, and certainly adds to a bit of piece of mind in the fast moving world of WordPress!

http://wordpress.org/extend/plugins/wp-dbmanager/

Good free URL redirection plugin for WordPress

If like me you have some sites that have a million links to sites, people, places and products you need to me able to manage them well. I stumbled across a redirection plugin for WordPress that seems to do the job pretty well. I’ve used this plugin for the last year or so on a couple of sites and has been super helpful. IMO the best use is for links that might change over time, you can update the target URL whenever you like and it won’t change your hard coded links in your website. So it means you can easily target broken links in the future, and you only have to change it in one place rather than hundreds. you just add a variable after go/yourquicklink and it’ll send it on from there. Very clever. Can also be used to tidy up affiliate links heading out your site, a much neater and better looking link, without any of the problems that are usually associated.

Have a look here at the (Free) GoCodes Plugin

Remove the default ‘category’ prefix from your wordpress URL

On new WordPress installs, I’ve used the plugin ‘Top Level Categories’ more than a few times, and can certainly recommend it. Just be aware when fiddling with your categories that sometimes it creates weird structures if you set up the individual categories first – the last time I used it I installed the plugin first, then assigned each post a new category. This seemed to solve the problem. I would suggest using the /%category%/%postname%/ permalink structure, and twinned with an SEO plugin controller you’ll have pretty good control over your URL and site structure… best to get it as soon as possible before you make too many pages!

Top Level Categories

Removes the prefix from the URL for a category. For instance, if your old category link was /category/catname it will now be /catname