WordPress Blog Title/Name Function

/ Published in: PHP
Save to your folder(s)

is the code which we use in place of the name of the site, wherever we'd like that name to appear in our template. WordPress queries the database and finds the name which you have inserted in the Blog Name field under Settings » General.

Copy this code and paste it in your HTML
  1. <?php bloginfo('name'); ?>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.