This technique allows your WordPress content editors to specify their own custom background image for each page individually using custom fields (or meta boxes). Insert the following code into the head of your page: You will need to suppliment this with additional css which won’t need to change and can therefore be included in the Full Article…
Search the Wiki
Internet Explorer specific CSS
As much as we don’t like to deal with the IE bugs, we still have to face it because your boss and visitors are still using Explorer. It gets frustrating when different versions of Explorer displays web pages differently due to the inconsistent rendering engine. We typically use IE conditional comments to fix the IE Full Article…
How to Enqueue Styles
This article will show you how to safely insert your CSS for your WordPress plugin or theme into the HEAD section of both the WordPress front-end and administration panel. I wrote an article a while back which explained how to safely enqueue JavaScript files into WordPress for your WordPress plugin or theme without simply injecting code into Full Article…
Using Javascript libraries with your plugin or theme
When you develop a WordPress plugin or theme, you might want to make use of some of the Javascript libraries distributed with the WordPress package such as Prototype, Scriptaculous and jQuery. Simple enough, they are in the “wp-includes/js/” folder, so what more is there to it? Can’t I just add a SCRIPT tag in the Full Article…
Restrict access by logged in author
Add this to your functions file: Then you can use this in your templates:
Textarea with a dynamic variable
Don’t specify the value of the <textarea> in a value attribute, but for a <textarea>you must put it between the two tags:
Fix the Vanilla Forum PDO issue on Localhost
Taken from the Vanilla forum. A question that usually would appear would be about an error relating to PDO shows up when you visit your freshly uploaded Vanilla 2.0.15 folder. It’s obviously not a bug but I don’t know where else to post this, but I originally had the question of “why am I getting Full Article…
Add jQuery to WordPress
By default WordPress comes packaged with a jQuery function but because the jQuery libraries are updated constantly I decided to call my own jQuery libraries from a CDN. CDN stands for content delivery network, large enterprises have their own CDN’s where they host copies of popular script. In the following example I’m using the CDN Full Article…
Get various taxonomy queries and information
Unfortunately (in my eyes)I haven’t found a way inside a post or page to query what taxonomies have beenused to apply terms. This for me would be a bit of a holy grail. Anyeway – these are the bits and pieces I have developed when trying to get various bits and pieces of information from Full Article…
Query only posts with thumbnails
The issue with the coide for displaying only posts with thumbnails in the past has been that you query the posts type and then put a ‘if has post thumbnail’ conditional in the loop. This means that if you wanted 12 posts and that how many you get in the query, maybe only 6 have Full Article…