Esempio n. 1
0
/**
 * Print the author archive title.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function thds_single_author_title()
{
    echo thds_get_single_author_title();
}
Esempio n. 2
0
/**
 * Filters the archive title. Note that we need this additional filter because core WP does
 * things like add "Archives:" in front of the archive title.
 *
 * @since  1.0.0
 * @access public
 * @param  string  $title
 * @return string
 */
function thds_get_the_archive_title($title)
{
    if (thds_is_author()) {
        $title = thds_get_single_author_title();
    } else {
        if (thds_is_theme_archive()) {
            $title = post_type_archive_title('', false);
        }
    }
    return $title;
}