how to add title to wordpress php
snippet in php

how to add title to wordpress php

user4416

// For website name in <title> tag
<?php wp_title(); ?>
  
// For the Post title within the loop
<?php the_title(); ?>