I want to dynamically implement the h1 into the page title. The end-users won't have access to the source code but will be able to add headings (such as h1). I need the title to be filled with the content of h1. How can I do it? I want to do it for Wordpress, as I create my own template.
<title><?php echo h1 ?></title>
<h1>The Title</h1>
Again due to many inaccurate answers: the USER has NO access to the code. He uses only the editor, where he can place TEXT and headings. He has no knowledge of coding, so whatever he types in as heading1 will need to be a title. No variables on front end whatsoever. The backend will need to stay generic.
This is what the user can access:
He puts in the Title of the page. I want this title to become a < title >, not only a H1, which Wordpress offers.
Thanks