Skip to content
Advertisement

Display WordPress Site Title

I want to display the Title of my WordPress Site on the single blog posts pages.

I use the following line of code in my theme’s ‘single blog post.php’

JavaScript

However it does not show anything.

Advertisement

Answer

You are not outputting anything to show. You are only assigning blog name to a variable. You need to echo the content. It should be :

JavaScript

Hope this helps 🙂

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement