A few of my favourite presentations from WordCamp Melbourne 2013. My WP Development WorkFlow – Bronson Quick Photoshop Best Practice for WordPress – Blaz Robar How to Survive People Discovering your Plugin – Michael De Wildt Mobile First Development and Design for WordPress – James Banks Inclusive Design for WordPress – Joe Ortenzi 101 Ways […]
These are my reference notes on the lesson Using the Query String of the the Tuts+ Course PHP Fundamentals by Jeffery Way. Links The PHP Fundamentals course on Tuts+ Jeffery Way on twitter Notes The query string is everything that comes after the question mark in the URL eg. http://benpearson.com.au/index.php?name=jeffery&job=developer The query string contains key value pairs eg. name=jeffery […]
Assuming you have Mixture and XAMPP (or similar local server) installed and your WordPress site is already working locally. Make sure there’s no existing compass folder or config.rb file in your theme folder. Start XAMPP (or other local server). Start Mixture. Click Open in Mixture and select your theme folder inside wp-content/themes Select your theme folder […]
Installing XAMPP Download XAMPP Installer for WIndows and install with default settings. If you get a warning in XAMPP saying Skype is using port 80, do the following: Stop all services and quit XAMPP Open Skype Tools -> Options -> Advanced settings -> Connection Uncheck “Use port 80 and 443 as alternatives” Run XAMPP as administrator […]
Need a tag cloud without all the styles? Just a simple unstyled, linked list of all the tags used throughout a blog? Try the wp_list_categories() function. Weird, I know. The taxonomy parameter of the function enables it to list post tags instead of categories. The following displays a linked list of all the post tags […]
What are they? A rem is a CSS3 unit which can be used instead of the em and px units. rem stands for “root em”. Why use the rem unit? Like the em unit, the rem unit is useful in responsive design. But whereas the em unit is relative to the font-size of it’s parent, the rem unit […]
A pluggable function is a a function wrapped in a function_exists() call eg. <?php if ( ! function_exists( ‘my_pluggable_function’ ) ) { function my_pluggable_function() { /* Some code goes here */ } } ?> When using a child theme, you can override pluggable functions by defining them first in your child theme’s functions.php file. The child […]
Text only page templates for website status messages.
This function includes the script if it hasn’t already been included, and safely handles dependencies (scripts that must be loaded before the script). <?php wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer );?> $handle is the name of the script in lowercase. $src (optional) URL to the script. This parameter is only required when WordPress does not […]
Set the parameter hide_empty to false. <?php wp_list_categories( ‘hide_empty=0’ ); ?> wp_list_categories() in the WordPress Codex.