All the query stuff we need for tag= URLs to work.

git-svn-id: https://develop.svn.wordpress.org/trunk@5149 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2007-03-31 06:16:12 +00:00
parent 4e3b757f81
commit 570a74e818
8 changed files with 89 additions and 10 deletions
+11
View File
@@ -328,6 +328,17 @@ function get_category_template() {
return apply_filters('category_template', $template);
}
function get_tag_template() {
$template = '';
if ( file_exists(TEMPLATEPATH . "/tag-" . get_query_var('tag') . '.php') )
$template = TEMPLATEPATH . "/tag-" . get_query_var('tag') . '.php';
elseif ( file_exists(TEMPLATEPATH . "/tag.php") )
$template = TEMPLATEPATH . "/tag.php";
return apply_filters('tag_template', $template);
}
function get_date_template() {
return get_query_template('date');
}