This little script will keep whatever custom field values you have used when you restore a post to a previous version. Currently, WordPress by default will clear those custom fields whenever you try to restore a post to a previous version which can lead to some headaches. Add this bit to your functions.php file to […]
Use this script when moving from one URL to another to catch the most common places where a URL is embedded:
Recently I wanted to update a particular WordPress installation to use something other than the theme’s style.css file as it’s default CSS document. Here is the code to enable that:
Insert this into your wp-config.php file to force a new URL on a WordPress blog: Very useful for the initial move before being able to hop in to the database and correctly update everything.
SELECT ColumnOne, ColumnTwo, ColumnThree FROM Table ORDER BY CASE ColumnTwo WHEN ‘miny’ 1 WHEN ‘meeny’ 2 WHEN ‘eeny’ 3 WHEN ‘moe’ 4 END, ColumnThree
INSERT INTO dbo.Destination ( FieldOne ,FieldTwo ,FieldThree ,FieldFour ,FieldFive ) SELECT FieldOne ,FieldTwo ,FieldThree ,FieldFour ,FieldFive FROM dbo.Source
After attempting to use the CSS3 Pie method for achieving some CSS3 support in IE browsers I’ve unfortunately come to the conclusion that it is still far too buggy for any kind of use other than for testing or demonstrations. It has a pretty significant issue with the way that IE8 and lower hand page […]
I noticed a subtle but nice feature on the Google News main page recently. The left-hand navigation that has the various section headings remains fixed to the top left area as you scroll down but it does not overlap the top banner area. Also, if your browser window is too small to fit the entire […]
This snippet of code uses the .filter() function within jQuery to find all “li” elements that contain just the text “findthis”.
Ever wanted to skip right to just the double left quote in the default Windows Character Map? Well, turns out you can. Just click the “Advanced view” check box in the bottom left of the Character Map window.