wp_get_document_title example


function _wp_render_title_tag() {
    if ( ! current_theme_supports( 'title-tag' ) ) {
        return;
    }

    echo '<title>' . wp_get_document_title() . '</title>' . "\n";
}

/** * Displays or retrieves page title for all areas of blog. * * By default, the page title will display the separator before the page title, * so that the blog title will be before the page title. This is not good for * title display, since the blog title shows up on most tabs and not what is * important, which is the page that the user is looking at. * * There are also SEO benefits to having the blog title after or to the 'right' * of the page title. However, it is mostly common sense to have the blog title * to the right with most browsers supporting tabs. You can achieve this by * using the seplocation parameter and setting the value to 'right'. This change * was introduced around 2.5.0, in case backward compatibility of themes is * important. * * @since 1.0.0 * * @global WP_Locale $wp_locale WordPress date and time locale object. * * @param string $sep Optional. How to separate the various items within the page title. * Default '&raquo;'. * @param bool $display Optional. Whether to display or retrieve title. Default true. * @param string $seplocation Optional. Location of the separator ('left' or 'right'). * @return string|void String when `$display` is false, nothing otherwise. */


if ( ! headers_sent() ) {
    header( 'X-WP-embed: true' );
}

?> <!DOCTYPE html> <html <?php language_attributes(); ?> class="no-js"> <head> <title><?php echo wp_get_document_title(); ?></title> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <?php     /** * Prints scripts or data in the embed template head tag. * * @since 4.4.0 */
    do_action( 'embed_head' );
    ?> </head> <body <?php body_class(); ?>>


/** * Displays title tag with content, regardless of whether theme has title-tag support. * * @access private * @since 5.8.0 * * @see _wp_render_title_tag() */
function _block_template_render_title_tag() {
    echo '<title>' . wp_get_document_title() . '</title>' . "\n";
}

/** * Returns the markup for the current template. * * @access private * @since 5.8.0 * * @global string $_wp_current_template_content * @global WP_Embed $wp_embed * * @return string Block template markup. */


    /** * Filters the blog title for use as the feed title. * * @since 2.2.0 * @since 4.4.0 The `$sep` parameter was deprecated and renamed to `$deprecated`. * * @param string $title The current blog title. * @param string $deprecated Unused. */
    return apply_filters( 'get_wp_title_rss', wp_get_document_title()$deprecated );
}

/** * Displays the blog title for display of the feed title. * * @since 2.2.0 * @since 4.4.0 The optional `$sep` parameter was deprecated and renamed to `$deprecated`. * * @param string $deprecated Unused. */
function wp_title_rss( $deprecated = '&#8211;' ) {
    
null,
    /* translators: %s: Template name. */
    sprintf( __( 'Please include a %s template in your theme.' )basename( __FILE__ ) )
);
?> <!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <link rel="profile" href="https://gmpg.org/xfn/11" /> <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" /> <title><?php echo wp_get_document_title(); ?></title> <link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="screen" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <?php if ( file_exists( get_stylesheet_directory() . '/images/kubrickbgwide.jpg' ) ) { ?> <style type="text/css" media="screen"> <?php     // Checks to see whether it needs a sidebar.     if ( empty( $withcomments ) && ! is_single() ) {
        ?>
Home | Imprint | This part of the site doesn't use cookies.