How to Redirect to Custom Page After Completing a LearnDash Course

One of the features I recently finished for the my redesign of my JavaScript for WordPress site was to have users taken to a special page once they complete a course. You can do this a number of ways, but here is how I did it:   1. Setup Congratulations Pages for Each Course The first thing I did was … Continue reading How to Redirect to Custom Page After Completing a LearnDash Course

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 WordPress Filters and Actions

Thanks to Otto for making the difference between actions and filters clear: Filters filter things. Actions do not. And this is critically important when you’re writing a filter. A filter function should never, ever, have unexpected side effects. There, you go, pretty straightforward!  He actually makes some really good, concise points about the difference between … Continue reading The Difference Between WordPress Filters and Actions

Create a Function to Create WordPress Widgets

I've taken to the practice of doing something like this whenever I need to create multiple widgets in a theme that all have the same basic parameters. function create_widget($name, $id, $description) { register_sidebar(array( 'name' => __( $name ), 'id' => $id, 'description' => __( $description ), 'before_widget' => ' ', 'after_widget' => ' ', 'before_title' … Continue reading Create a Function to Create WordPress Widgets