WordPress preview post not working… quick workaround

WordPress preview post links not working? Sick of unsuccessfully trying different things you’ve found on Google like I was? Pretty much every article I read offered a different solution. Some suggested it was related to a bad theme update, others that is was related to caching, others still pointed the finger at mod rewrite/isapi rewrite rules. Eventually I gave up and just went with a preview post workaround.

WordPress preview post not working workaround

Wordpress preview post not working workaroundWell a quick workaround for you might be to just go ahead and publish the post but set its visibility to privatePrivate content is only visible when you are logged in so can be used to preview posts before publishing to everyone. Note however other editors and administrators will be able to see this content too when they are logged in, but that may be fine for your case. You can set a post to private from the right hand side of the add/edit post page as shown above.

FYI: this is what the post looked like on the site before I made it public


Scheduled WordPress backups with the UpdraftPlus plugin

Just installed UpdraftPlus to schedule backups of all my WordPress related content including of course the database but also the images, themes, plugins etc.

I’ve just scheduled backups to come to my email but you are also able to send them to Google Drive, Dropbox and a couple of other cloud storage services too, which is pretty sweet I think.

It’s free (although there is a premium version too) and packed with features so if your looking to implement backups on a schedule to give yourself piece of mind I’d definitely recommend installing it.

updraftplus screenshot 2

Setting up WordPress permalinks on a Blacknight Windows account with ISAPI Rewrite installed

If your hosting your site on a Blacknight shared windows hosting account, you’ll likely have either ISAPI Rewrite 2 or ISAPI Rewrite 3 installed depending on which particular box you are on. The machine I was on was based on ISAPI Rewrite 2 so rewrite directives had to be placed in httpd.ini. My WordPress install was in the root so I created a httpd.ini file in there and added the following which got custom permalinks working for me. 


# For file-based wordpress content (i.e. theme, admin, etc.)
RewriteRule /wp-(.*) /wp-$1 [L]

# For normal wordpress content, via index.php
RewriteRule ^/$ /index.php [L]
RewriteRule /(.*) /index.php\?$1 [L]

If your using version 3 of ISAPI Rewrite you should just be able to manually create and use a .htaccess file like on Unix. Placing the following code in your .htaccess file should do the trick, although I’ve not confirmed this as I’m on version 2.

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /index.php [L]