Tutorial by Examples

<?php echo get_bloginfo( 'name' ); ?> or <?php echo get_bloginfo(); ?> Output Matt Mullenweg Based on these sample settings
<?php echo get_bloginfo( 'description' ); ?> Output Just another WordPress site Based on these sample settings
<?php echo esc_url( get_bloginfo( 'stylesheet_directory' ) ); ?> Output http://example.com/wp-content/themes/twentysixteen Alternatives Internally, get_bloginfo( 'stylesheet_directory' ) calls get_stylesheet_directory_uri(), so you may want to use that instead: <?php echo esc_url( ...
<?php echo esc_url(get_bloginfo('url')); ?> or if you needed to link to a sub page <?php echo esc_url(get_bloginfo('url') . '/some-sub-page'); ?>
We can use the get_bloginfo function to retrieve the email address of the site administrator. <?php echo get_bloginfo('admin_email'); ?>

Page 1 of 1