WordPress Getting the site title


Example

<?php echo get_bloginfo( 'name' ); ?>

or

<?php echo get_bloginfo(); ?>

Output

Matt Mullenweg

Based on these sample settings

enter image description here