Display WordPress featured image, thumbnail, or YouTube thumb

WordPress Tips & Tricks

Huge thanks to Vladimir Prelovac, who wrote the original function. I use it a ton and have adapted it a bit to check for:

  1. Featured image; then
  2. First image attached to the post; then
  3. The first image inserted in the post; then
  4. The thumbnail of the first YouTube video inserted in the post

All I added was the featured image … Read the rest

Add post/page name + page parent name to body class

WordPress Tips & Tricks

This will add a page-slug class and a page-parent-slug class to your body tag, along with all the other defaults. Put this in your functions.php file:

Also make sure your open body tag looks like this (you can probably find it in header.php):

Many thanks to Utkarsh Kuketri for the original function!… Read the rest

Talk about handy! One Page Apps | CSS-Tricks

General Web Coolness

I’ve used CSS3Please a tone, but many of the others are new to me – and so handy! I love CSS-Tricks.com.

http://css-tricks.com/12389-one-page-apps-i-actually-use/Read the rest

10 Techniques for Customizing the WordPress Admin Panel

WordPress Tips & Tricks

Great article from Six Revisions with lots of tips to customize both the dashboard and entire WordPress control panel.… Read the rest

TwentyTen Five – The HTML5 WordPress theme

WordPress Tips & Tricks

A very good Smashing Magazine article came out the other day explaining how to convert the WordPress TwentyTen theme to HTML5. Here’s that theme for download:

http://www.twentytenfive.com/Read the rest

Daily Tip: Add More Automatic Image Sizes to the WordPress Media Library

WordPress Tips & Tricks

Great tip from the WPMU blog, and one I’d been seeking for a while. This gives you the ability to not only add new image sizes, but to have them show up in the Media popover so that users can “Insert (the new image size) into Post”. http://networkedblogs.com/eCP0wRead the rest

CSS Variables with PHP | CSS-Tricks

General Web Coolness

Awesome trick enabling you to use variables in CSS files. Would be great for themes with user-selectable style elements.

http://css-tricks.com/css-variables-with-php/Read the rest