How to Add Meta Descriptions to WordPress Themes Using functions.php

While working on an SEO for WordPress course recently, I was looking for a way to manually add meta descriptions to a theme from the functions.php file. After playing around a bit, I came up with this solution: https://gist.github.com/zgordon/950159056d2ad299b0ee This of course raises the bigger question of why would you want to do this instead of … Continue reading How to Add Meta Descriptions to WordPress Themes Using functions.php

How to Deregister, Unqueue and Unhook a Parent Theme CSS Stylesheet

There comes a time when working with a WordPress project where you want to not include certain CSS from a parent theme or plugin.  For example, a parent theme may include extra stylesheets that you don't want or a plugin may be adding styles that conflict with your site. On a recent project, I wanted to remove … Continue reading How to Deregister, Unqueue and Unhook a Parent Theme CSS Stylesheet

The difference between $wpdb->query vs. $wpdb->get_results in WordPress

This took me a while to figure out when I started intuitively using $wpdb->query to pull in results from a query in a custom table in WordPress. However, $wpdb->query only returns the count of the query. You have to use $wpdb->get_results to get the actual SELECT statement back. Good to know, and will save you … Continue reading The difference between $wpdb->query vs. $wpdb->get_results in WordPress

If You Haven’t Seen Brad Williams Speak in Person on WordPress Security, Watch This!

Brad Williams has long been considered a leading person on WordPress security. I've had the opportunity to see him speak a number of times and if you haven't, I would really suggest you check out one his latest talks from WordCamp Phoenix. I will be doing an upcoming course on WordPress security for Treehouse and … Continue reading If You Haven’t Seen Brad Williams Speak in Person on WordPress Security, Watch This!