Is it ok if I use this <title> tag?

I'm using

title?php echo get_bloginfo('title'); ?/title

but it shows the same title in all pages. Is it any way to show the title post, the separator and the blog name in the tag?

Topic wp-blog-header.php theme-options seo theme-development Wordpress

Category Web


WordPress generates TITLE tag on its own, and you should not add title tag like that into the theme. Here is the article on WordPress Codex on how to add title tag support to the theme: Title Tag.

By default, WordPress includes website name in the title tag too, and if you implement it like this, SEO plugins will be able to modify the title tag.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.