Naming a file, while seemingly an easy task has a number of nuances to it. Here are some tips to improve your file naming. A rose by any other name, would smell just as sweet but would be more difficult to locate. Use all lowercase letters A combination of upper and lowercase letters in a […]
WordPress YouTube oEmbed Not Working on Firefox
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 […]
How to Disable JavaScript in Chrome
2014-08-29 UPDATE: Current version of Chrome has issue I’m seeing an issue where the Disable JavaScript checkbox is becoming unchecked on refresh (thus undoing the point of this post). More info at https://code.google.com/p/chromium/issues/detail?id=369844 Current fix seems to be “click Disable JavaScript a bunch of times” (yes, I realize this is a ridiculous fix) How to […]
WordPress Genesis Loop Only Display Sticky Posts
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).
MAMP Cache Settings
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 […]
Rotating My Alarm Clock
Things that make me happy Rotating My Alarm Clock so it is not in view while I’m sleeping
wp_insert_user() with “no role for this site”
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 […]
Testing Redirects
Testing redirects can be a nightmare since the web browsers aggressively cache redirects. Use incognito mode in Chrome to make it easy to clear cached redirects by closing the Incognito window. Even Better Update Testing redirects from the command line works even better. curl -I http://www.example.com/ will return the headers for the request including the […]
Quick Cache requires PHP v5.3
WordPress Quick Cache Plugin There is a new version of the WordPress Quick Cache plugin available. Higher Minimum Requirements This new version requires PHP 5.3+ This is a higher requirement than WordPress itself, which requires a minimum of PHP 5.2.4 (http://wordpress.org/about/requirements/). Sometimes Newer is Not Better If you are running on a server with sub PHP […]
Work like Leonardo
Having small children leads to many thought provoking conversations. The most recent, sparked by a discussion of the Teenage Mutant Ninja Turtles, was about Leonardo da Vinci. (I honestly wasn’t going to include so many links but after linking to TMNT, I felt guilty not linking to da Vinci). Leonardo da Vinci was Really Smart When […]