Reusing the page name class that Wordpress adds to body tag
<p>When viewing my blog in the browser, the body tag (on the index page) has the following class:</p>

<pre><code>&lt;body class="home"&gt;
</code></pre>

<p>On other pages (for this example, a page that pulls in posts that are within the category "project"), the body tag has even more classes:</p>

<pre><code>&lt;body class="archive category category-project category-3"&gt;
</code></pre>

<p>Both of these are rendered using the following code, contained within the html_header part:</p>

<pre><code>&lt;body &lt;?php body_class(); ?&gt;&gt;
</code></pre>

<p>I was wondering whether there was a way in which I could isolate the page descriptive class (1st example - home, 2nd example - category-project) that this command targets and use within the page.</p>

<p>Thanks</p>
