In general my upgrade to WordPress 5.5 has been pretty seamless, across all of the client sites that I maintain. This is good news! One of the main issues that I’ve come across is with a few of the sites running older themes (despite my recommendations to let me update or create a custom theme…
Tag: wordpress
Adding a custom WordPress editor via javascript
Working on a project today I needed to have 99 WordPress rich editors (powered by TinyMCE) on one page, and let me tell you, this absolutely kills the page load time! In the first iteration I’d done this purely in PHP using wp_editor, like this… $value = ”; //this is the current value if there…
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…
WordPress, why no get_the_widget?
So the problem I was having the other day was that I wanted to be able to output a widget on a WordPress custom theme archive page, but I didn’t know where the user wanted to put it, or what attributes they wanted to pass in, it needed to be really flexible (isn’t that always…
Better Captcha – a new WordPress plugin
I did say a few months ago that I was working on a paid plugin called Better Security Pro, and that’s still true, it’s still in the works. It’s become a much bigger project than I initially thought as I keep having more and more ideas, but I hope that it’s going to be ready for…