Tag Archives: Wordpress

WordPress Site stuck in maintenance mode.

I was updating a plugin on a WordPress site I maintain and the process just stopped working. The site was stuck in Maintenance mode. To get out of maintenance mode I had to delete the file ‘. maintenance’ from the root of the site. Once I had done this the site instantly came back up.

Exclude Featured image from WordPress gallery

I needed to add the default wordpress gallery to page with a featured image but found that the featured image was also included in this gallery. The best way I found to exclude this is to add the code below to your site function exclude_thumbnail_from_gallery($null, $attr) {     if (!$thumbnail_ID = get_post_thumbnail_id())     […]