I've updated to WordPress 3.3 and File Gallery 1.7 yesterday, and suddenly all my media tags were gone. With the Media Tags plugin I somehow managed to restore things so that File Gallery now also recongizes my tagged media again, however generating archive pages for tags on the fly doesn't work anymore for some reason. I've got a file called taxonomy-media_tag.php in my theme's directory with the following contents:
<?php
/**
* The template for displaying Media Tag galleries.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header(); ?>
<?php
$year_term = get_query_var( 'term' );
?>
<div id="container">
<div id="content" role="main">
<h1 class="entry-title" style="margin-bottom:1em;">Media Archive for “<?php echo $year_term; ?>”</h1>
<?php
$opts = array (
'order' => 'DESC',
'orderby' => 'ID',
'size' => 'thumbnail',
'link' => 'file',
'linkclass' => 'thickbox',
'include' => '',
'exclude' => '',
'template' => 'carsten',
'rel' => 1,
'tags' => $year_term,
'tags_from' => '',
'output_type' => 'html',
'output_params' => 1,
'limit' => -1
);
echo file_gallery_shortcode($opts);
?>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
This made it possible to access e.g. ./archives/media-tag/2011 and get a listing of all files in my media gallery tagged with "2011". However, as I said, this somehow doesn't work anymore and I'm only getting a 404 page.
Anyone got an idea as for why this might be? Thanks!