I came across an interesting issue today. In Firefox the YouTube oEmbed Can Not be Clicked This issue arose in Firefox 25.0 on a Mac when loading a YouTube oEmbed within an element using CSS transform: translate(). This seems to be a known bug. General Solution The general solution, as outlined on this Stack Overflow Thread, is […]
Update 2015-09-28 Thanks to Joan in the comments for pointing out the original code posted here was only relevant when using a Genesis Custom Loop. This updated solution applies to the default loop (and is not Genesis specific).
Using MAMP 2.2 I’ve found a delay in pages updating after I modified them, which is maddening when working on things. The culprit is the MAMP Cache Settings. Clearing MAMP Cache Settings I’ve discovered OPcache is enabled by default for PHP Version 5.5.3 (and other versions, as well). This can be disabled by commenting out […]
My goal was to use wp_insert_user() to create a user with “no role for this site”. For some notes on “no role for this site” see http://wordpress.org/support/topic/what-exactly-is-no-role-for-this-site-do#post-2177545 When using $new_user = wp_insert_user( $userdata ); omitting the role parameter in the $userdata uses the default role set. If you want “no role for this site”, set the […]
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 […]
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 […]
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 […]
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 […]