Blog Archives

Where’s My Query?

Working With WordPress Hooks
How do you know what WordPress is fetching from your database when someone does a site search? Does it include the custom post types created by your specialty theme or plugins? Did you want it to? Larry Aronson provides a quick and dirty hack for displaying the main SQL query statement in the footer of a WordPress page.

WordPress 3.3 — A Major Update

WordPress version 3.3 has arrived and it’s a major release. Where version 3.2 was mostly a bug fix and stability release, version 3.3 introduces new tools for all users from admins to authors and subscribers. I’ve been working with the beta and release candidate versions here on this blog and the improvement that has me most excited is the unified drag-n-drop media loader.

A WordPress Macro Shortcode

Example of using Google Maps embed code

Good News Everyone! The post/page editor is getting an upgrade with the soon-to-be-released version 3.2 of WordPress. This solves the problem of disappearing Google maps and YouTube videos, both of which rely on iframe elements to embed the contents of one webpage into another. Because the current version of WordPress’ built-in editor doesn’t like iframes you have to limit yourself to working in the editor’s HTML mode. Once you switch to Visual mode, the iframe elements are stripped out of your post and the map or video disappears. While this limitation is removed in the next release, one of the work-arounds that WordPress developers devised is worth a second look. A general purpose macro shortcode that saves you from ever having to work in the HTML mode again.

Popular Posts Sidebar Page

top ten blocks

There are a lot of WordPress plugins that will put a Popular Posts widget in your blog’s sidebar. But, they all return different results. Often, the best approach is to just throw a page with a list of permalinks into your sidebar. Here’s how to create a sidebar widget that will display a page featuring the posts you want to highlight.

Custom Widget Titles With jQuery

A technique for adding custom styles and links to individual sidebar widget titles using jQuery methods to select elements by their content.