Snippets

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…

Read More

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

Read More

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 a lot.

Read More

Memory Hole

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 included files. */ define(‘WP_MEMORY_LIMIT’, ’64M’);…

Read More