Rotating background images with admin options

i would try the plugin “attachments” for the images. use it all the time for making page-specific galeries, downloads, etc. afterwards, you can use the script “supersized” Enqueue the Javascript from the Plugin, and place the following Code into the <head>: <script type=”text/javascript”> jQuery(function($){ $.supersized({ //Functionality gnav != true slideshow : 1, //Slideshow on/off autoplay … Read more

Get parse_query filter to return slug instead of id

taxonomy & term won’t be set (in this case), since query vars are mapped from GET/POST. In other words, $qv[‘large_feature’] = 291 (see wp_edit_posts_query() and WP_Query::get_posts() for the big picture). add_filter( ‘parse_query’,’convert_large_feature_id_to_taxonomy_term_in_query’ ); function convert_large_feature_id_to_taxonomy_term_in_query( $query ) { global $pagenow; $qv =& $query->query_vars; if ( $pagenow == ‘edit.php’ && isset( $qv[‘large_feature’] ) && ctype_digit( $qv[‘large_feature’] … Read more

Show 1 post and after a specific date show the next one

Assuming, as per the above comment, the format of the dates is YYYY/MM/DD: $args = array( ‘posts_per_page’ => 1, ‘cat’ => 6, ‘meta_key’ => ‘begin_date’, // adjust to actual key ‘meta_value’ => date( ‘Y/m/d’ ), ‘meta_compare’ => ‘>=’, ‘order’ => ‘ASC’, ‘orderby’ => ‘meta_value’ ); $wpse72195_query = new WP_Query( $args ); // do something with … Read more