Sort Events Category by Publish Date (Oldest First)

function sort_posts_by_category($query) { if ($query->is_main_query() && !is_admin()) { $oldest_first_categories = array(1483,1486,1485,1484,1482,1391); // Replace with the IDs of the categories where you want to display oldest posts first if (is_category($oldest_first_categories)) { // $query->set(‘order’, ‘ASC’); // $query->set(‘orderby’, ‘date’); $query->set( ‘meta_key’, ‘start-date’ );…Continue reading

Automatic CSS/JavaScript Cache Busting

/** * Replace the `ver` query arg with the file’s last modified timestamp * * @param string $src URL to a file * @return string Modified URL to a file */ function filter_cache_busting_file_src( $src = ” ) { global $wp_scripts;…Continue reading

Easter

Info om tävlingen Starta tävling   Första gåtan Submit    Andra gåtan Submit    Tredje gåtan Submit    Resultat och översikt Tiden det tog för dig att lösa alla tre gåtor: De som har deltagit:  Continue reading