Ensure CSS or JS is fresh on each save

function my_scripts_and_styles(){ $cache_buster = date(“YmdHi”, filemtime( get_stylesheet_directory() . ‘/style.css’)); wp_enqueue_style( ‘main’, get_stylesheet_directory_uri() . ‘/style.css’, array(), $cache_buster, ‘all’ ); } add_action( ‘wp_enqueue_scripts’, ‘my_scripts_and_styles’, 1);

Nextgen Gallery Hacks

How to Make the Galleries Sort Alphabetically for the Dropdown in the Add Gallery / Images Page Navigate in Windows Explorer to <site_root>\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\nextgen_addgallery_page\templates\upload_images.php Add the following code to the very top <?phpusort($galleries, “my_cmp”);if(!function_exists(“my_cmp”)) {     function my_cmp($a, $b) {     if ($a->title == $b->title) {          return 0;        }        return ($a->title < $b->title) ? -1 : 1;      }}?> How […]