Move Titles Around in Genesis

From time to time, we like pulling titles out of the normal flow of the page and put them somewhere else. Like above the content-sidebar div (or whatever div holds the page content). This causes problems, though; a customized homepage layout ends up with an unwanted title, category and archive pages display the first post [...]

Evaluate Types & Views Content; Don’t Display Empty Fields

Now that we’re all in love with Types & Views, we had to figure out how to evaluate custom fields to determine whether they should be displayed. After an hour of beating our heads against the wall, we came up with the code below. The thing that tripped us up? Check out this bit of [...]

CPT Single Post Template with Content Check

This code is written to work with Pippin’s Easy Custom Post Types. While we’re making heavy use of Types & Views these days (check them out, they’re effin’ awesome), we thought this code might be handy to someone out there in WP land. We used this function to create a custom post type for listing [...]

Use custom field to assign content well background

Can I write a plugin that will give me the ability to upload a photo and assign it to .wrap or .content? We’ll see. The beginning of the idea is here on this post.

Members-Only WordPress menus

// register the new sidebar; this will hold a WP custom menu widget, give it a logical name register_sidebars(1,array(‘name’ => ‘Members-Only Menu’, ‘before_widget’ => ‘<li id=”%1$s”>’, ‘after_widget’ => ‘</li>’, ‘before_title’ => ‘<h3>’, ‘after_title’ => ‘</h3>’ ) ); // create function to display widget // this menu is limited to user levels above “subscriber” function widgetized() [...]

A different way to include stylesheets

Here’s another way to link to stylesheets. It may be overkill for some things, but definitely useful for plugin developers. I’m thinking of sending the link to every plugin author who echoes 50 lines of CSS into my page headers. Thanks alot.