Add ‘first’ and ‘last’ classes to nav items

This comes in handy when you need to target the left and right (or top and bottom) ends of your navigation. Add it to your functions.php file.

Remove Post Meta or Post Info from Custom Post Types

It happens fairly often that we have a client who needs a custom post type as well as the usual blog/news feature. We need post meta and/or post info to show up for the news posts, but we don’t need that information on the custom post type since that information tends to be fairly static, [...]

Add Genesis SEO and Layout Options to CPTs

This is quick and easy. When you create a custom post type while running the Genesis framework, you won’t get Genesis’ built-in SEO controls or layout options. Add this to functions.php and they’ll show up.

Remove Items from WordPress Admin

Sometimes our clients don’t need access to everything WordPress offers — most often, the Links and Comments areas. Rather than deal with the confusion, we just hide what they don’t need:

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 [...]