$message the_title wordpress form code example
Example 1: wordpress echo the page title
<?php echo get_the_title(post->$ID); ?>
Example 2: 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(); ?>