Description
Can be used to change the default archive intro output.
Example
function default_archive_intro($output) {
if (is_category()) {
$intro = 'From the category archives: ';
}
elseif (is_tag()) {
$intro = 'Posts tagged as: ';
}
elseif (is_author()) {
$intro = 'Posts by author: ';
}
elseif (is_day()) {
$intro = 'From the daily archives: ';
}
elseif (is_month()) {
$intro = 'From the monthly archives: ';
}
elseif (is_year()) {
$intro = 'From the yearly archives: ';
}
$output = str_replace('<h1>','<p>' . $intro . '</p><h1>',$output);
return $output;
}
add_filter('thesis_archive_intro','default_archive_intro');
History
- This filter was added in version 1.8.