I’m not sure why I remember some things so well (Charlie Chaplain died on December 25, 1977) and others just don’t stick (Memorial Day and Labor Day, which one is in Spring and which one is in Fall?). At some point, I should start recording things I remember easily and things I do not and […]
Programming
get_next_post() Not Working in WordPress
Why is get_next_post() Not Working in WordPress We’ve got a WordPress instance setup with lots of posts being created as Drafts. Then using the Bulk Actions, we change the status of the posts to Published. Everything seems great until it becomes evident the get_next_post() and get_previous_post() functions are not returning anything. Why Isn’t this Working It turns out […]
HTML Comments within Comments
Everyone once in a while I find myself in need of nested HTML comments (i.e. HTML comments within comments). Unfortunately, HTML does not support nested comments. When you put HTML comments within comments, some of your content ends up uncommented. PHP Since it is rare that I’m working on a straight HTML site, usually there […]
jQuery filter Array Method
I really enjoyed Josh Clanton’s article Filtering Arrays with Array.filter on using the JavaScript filter method(). As he points out, Because the filter method is part of the ECMAScript 5 specification, it isn’t available in older browsers like IE8. Josh then lists a couple of options to bring this functionality into older browsers (i.e. IE < 9) […]
searchform.php not working in WordPress 3.6
This problem arises from a difference in how WordPress 3.5.2 and 3.6 handle the case where there is both a searchform.php template AND a filter on the hook get_search_form. In WordPress 3.5.2 in the presence of a searchform.php template, any filters on the hook get_search_form were ignored. With the upgrade to 3.6, filters on get_search_form are now […]
Stop Emails WordPress Plugin
Stops outgoing emails. Any outgoing emails will fail silently (i.e. WordPress will operate as if the email was sent successfully but no email will actually be sent). Why I’ve found when doing development work, sometimes I want to work on a site (often locally) but I don’t want it sending out any emails. Now with […]