The demo plugin can be downloaded here.
The demo plugin can be downloaded here.
Place this snippet of code in your functions.php file or in a plugin and then your admin bar will display the path of the template being currently used:
Gravity Forms by default will write an inline JavaScript call to jQuery on every form you add to a page. This will throw an error if you’re loading jQuery in the footer of your site (which you should be doing). This is the error: Uncaught ReferenceError: jQuery is not defined There’s an extremely hidden bit […]
If you’ve found that particular transients simply will not display in your theme yet they aren’t throwing an error? Check your database for duplicate entries. It is possible when moving a site between servers for a transients to become duplicated within the wp_sitemeta table and this causes the get_site_transient() function to silently fail. Simply go […]
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