I’m teaching two classes on WordPress at BCIT Friday August 21st. Below are the key code snippets along with a zipped archive of the famous Twitter box featured on this blog and in Computer Arts Magazine.
Replace the default heading with a clickable image
 ?>/imageFolder/imageFile.type)
The get_bloginfo(); template function
Where $show can be name, description, url, template_url etc. Full explanation in the WordPress Codex.
Custom Page Template
Standard PHP Include
Insert Custom Field in Template
ID, '$key', true); ?>
Conditional Custom Field
ID, 'divName', true))) { ?>
ID, 'divName', true); ?>
The Twitter Box
Click here to download a zipped archive of the Twitter box. Remember to change the username inside twitter.php, otherwise you’ll get my tweets on your site!
One reply on “BCIT Class Materials”
[…] style. I chose to go hard core on this one and just write it right into the single template using a conditional custom field. The result was the nice chunk of code below which produces a nice CSS styled box with the author […]