June, 2011

  1. Around the web

    Man of the Week: Republican New York State Senator Roy McDonald – “More like this, please.” +1. Verizon tiered data plans coming July 7, starting at $30? – Keep tabs on this if you’re planning to make the switch to Verizon. Highly recommended in Denver if you actually want to make phone calls with your…

  2. Use $content_width to Set Width of oEmbeds in WordPress

    If you want resulting oEmbed code to scale to a specific size (width) in WordPress, you can do this really easily by setting the $content_width global variable before calling your oEmbed processing. Example: global $wp_embed, $content_width; $content_width = ‘600’; // set to desired width $string_with_embedded_content = $wp_embed->autoembed($string_with_oembed_url); I only recently ran across this feature (just…

  3. Around the web

    Google’s Button is Slow – And so is Facebook’s. – It’s both difficult and frustrating to explain to clients that the reason their sites are slow is because of 3rd party scripts; typically ads and social buttons. (thanks Chris) What Safari’s Reading List means for Instapaper – I wonder if Marco has read this. Delivereads:…

  4. Detecting Lightboxed Pages in WordPress Admin

    When you want inject something into the WordPress admin, you might not think to account for pages that load inside lightboxes (plugin updates, media upload, etc.). Generally, you don’t want to add your JS/CSS/etc. to these pages. To check for this type of page load, you can check for the IFRAME_REQUEST constant. View the code…

  5. Around the web

    Why Ok Buttons in Dialog Boxes Work Best on the Right – UX Movement – this is a well constructed argument. Its About the Hashbangs – Good stuff here. “Squeamish” is exactly the right term for my response to this as well. Confession #102: I Dont Care if You Read This Article – “The project…

  6. WordPress Code Snippet to Detect “Main” Loop

    Cribbed from the WP-Hackers list, the following sample code should give you a good way to test if the current “in the loop” action is within the main loop or a different loop: function main_loop_test($query) { global $wp_the_query; if ($query === $wp_the_query) { echo “main loop”; } } add_action(‘loop_start’, ‘main_loop_test’); Thanks Nacin and Konrad. This…