If you are working within WordPress and want to display the post or page title, use the_title() or get_the_title() for more control: Store and modify:
Use a period ( . ) to join the title with HTML strings. php-echo-the-title
If your server supports it, you can use the shorthand: . If you are working within WordPress and want
Use code with caution. Copied to clipboard 2. WordPress Specific php-echo-the-title