Is it possible to pull the content from the title tag and display it as text on a html webpage? Wordpress
<p>I'm in the process of making a site that has a lot of different URL's all sharing the same design. I'm trying to make the titles display on each site because they're all unique, where as everything else is the same for the most part. I tried using this code:</p>

<pre><code>&lt;script type="text/javascript"&gt;
&lt;!--
  document.write(document.referrer);
// --&gt;
&lt;/script&gt;
</code></pre>

<p>On some browsers this would display the URL at the bottom of the webpage, but on others it wouldn't show at all, I tried to grab the data from this and move it to where I would like the content to go but I wasn't able to select it at all. </p>

<p>I'm using wordpress as my CMS and I looked into the editor to see if there was something I could do there and realized its all php - something I've never used before. I searched if there was a way to do this in wordpress but turned up with nothing. </p>

<p>I'm assuming this is where the php code should be</p>

<pre><code>&lt;h1 class="site-title"&gt;&lt;a href="&lt;?php echo esc_url( home_url( '/' ) ); ?&gt;" rel="home"&gt;here&lt;/a&gt;&lt;/h1&gt;
</code></pre>

<p>I'm assuming I'd need something similar to the php echo in the href where it says 'here'. Just to try I put the script in the anchor tag and not surprisingly the whole site stopped working because of an error. So I'm stuck.</p>

<p>Is there a way in wordpress that I can pull the title tag from the header into the html?</p>