Skip to content

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

By Dave Kuhar | March 27, 2012
Posted in , ,

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?…

Read More

CPT Single Post Template with Content Check

By Dave Kuhar | March 25, 2012
Posted in ,

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 freaking awesome), we thought this code might be handy to someone out there in WP land. We used this function to create a…

Read More

Members-Only menus in Thesis

By Dave Kuhar | February 17, 2011
Posted in , ,
Read More

Why limit yourself to Thesis Hooks?

By Dave Kuhar | October 15, 2010
Posted in , ,

Nuh uh. Not when you can start using WordPress Action Hooks to get more done!

Read More

Drop shadow with CSS for all web browsers

By Dave Kuhar | October 1, 2010
Posted in ,

From this site.

Read More

Memory Hole

By Dave Kuhar | September 18, 2010
Posted in ,

Tired of seeing this? Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes) Open wp-config.php, scroll to the bottom. Where you see this: /** Sets up WordPress vars and included files. */ require_once(ABSPATH . ‘wp-settings.php’); change it to this: /** Sets up WordPress vars and…

Read More

Replace the surfer dude 404

By Dave Kuhar | September 14, 2010
Posted in , ,

For some reason Chris Pearson created a goofy 404 message about surfing that doesn’t work for my clients. Maybe it doesn’t work for you either, so drop this code in your functions.php file and change it to whatever you like.

Read More

Feature Box with single post from designated category

By Dave Kuhar | August 19, 2010
Posted in , ,

Sometimes you need to throw something up front and center for all the world to see.

Read More

Footer mania continues

By Dave Kuhar | August 18, 2010
Posted in , ,

Maybe I mentioned this elsewhere, but what the hell, here is is again. To add a clone of the top nav, just do this:

Read More

Look! Another Footer!

By Dave Kuhar | August 4, 2010
Posted in , ,

Hot on the heels (heels! footer! haha!) of yesterday’s footer post, here’s a better way to code it, using an unordered list so it’s semantically correct:

Read More
Scroll To Top