Messed up featured images? Here is a code snippet to update every WordPress featured image in your posts.
Modifying Tweetable plugin to work with PrettyLinkPro & Twitter Friendly Links
A new version of Tweetable (A WordPress URL shrink-er and auto tweet-er) was released, and I thought I’d add some modifications to the plugin.
Change the height in Twenty Ten’s custom header
Add this to your child theme that is running Twenty Ten: function my_twenty_ten_height() { return ’328′; // change the number to what you desire, default is ’198′. } add_filter( ‘twentyten_header_image_height’, ‘my_twenty_ten_height’ );
Flush your rewrite rules on plugin/theme activation
I’ve actually been asked this a few times, and have seen others do it a few different ways. Anyway, here is my method: /* Flush rewrite rules for custom post types. */ add_action( ‘load-themes.php’, ‘frosty_flush_rewrite_rules’ ); /* Flush your rewrite rules */ function frosty_flush_rewrite_rules() { global $pagenow, $wp_rewrite; if ( ‘themes.php’ == $pagenow && isset( [...]