how to change title tag for page in wordpress custom code example
Example: how to add title to wordpress php
// For website name in <title> tag
<?php wp_title(); ?>
// For the Post title within the loop
<?php the_title(); ?>
// For website name in <title> tag
<?php wp_title(); ?>
// For the Post title within the loop
<?php the_title(); ?>