Udemy milestone

I got a nice little email through from Udemy the other day… Yes, it’s been pretty slow progress, but I’ve made it to 100 total (unique) students, across the 6 courses that I’ve made so far… Optimising your website: A development workflow with Git and Gulp (17 students) Optimising your website: A development workflow continued…

Sorry, I’m back

It’s been 51 days since my last blog post.  Based on the 3 day cadence of posts that I was working on, that’s 17 missed posts that I owe you.  Sorry about that. It wasn’t one particular thing that has stopped me from posting for so long, but a number of things. Obviously the world has gone…

Sending HTML emails in WordPress

Sounds simple, but WordPress defaults to text emails, so if you want to send pretty HTML ones, then you need to let it know. Previously I have done this in a bit of a convoluted way… add_filter(‘wp_mail_content_type’,’set_html_mail_content_type’); wp_mail($to_address, $subject, $message); remove_filter(‘wp_mail_content_type’,’set_html_mail_content_type’); This relies on this function to work… function set_html_mail_content_type() { return ‘text/html’; } You…

Updating WordPress post metadata

I was fighting with a WordPress issue earlier today, and the solution turned out to be pretty simple, and a clear case of me not reading the WordPress developer resources properly. The situation arose because I was updating a number of post metadata fields and trying to count the number of edits, like this… $count…