The issue arises when Post Title is the only available permalink to the Single-Post view. In this case, the developer may want to provide text such as &quot;No Title&quot;, etc., so that the permalink still gets displayed.<div>
<br></div><div>Chip<br><br><div class="gmail_quote">On Tue, Mar 8, 2011 at 2:15 PM,  <span dir="ltr">&lt;<a href="mailto:michael@mfields.org">michael@mfields.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Is there a need for a conditional test?<br>
<br>
I wrap all my code within the function and the conditional as pect is<br>
handled for you:<br>
<br>
the_title( &#39;&lt;h2&gt;&#39;, &#39;&lt;/h2&gt;&#39; );<br>
<br>
This way the tags will not be printed if the title is empty.<br>
<br>
-Mike<br>
<div><div></div><div class="h5"><br>
&gt; Ran across this suggestion on the WPORG support forums:<br>
&gt;<br>
&gt; <a href="http://wordpress.org/support/topic/handling-display-of-title-when-none-exists?replies=1" target="_blank">http://wordpress.org/support/topic/handling-display-of-title-when-none-exists?replies=1</a><br>
&gt;<br>
&gt; I like this approach; it is cleaner than performing a conditional test in<br>
&gt; the template file.<br>
&gt;<br>
&gt; Just thought I&#39;d pass it along...<br>
&gt;<br>
&gt; Chip<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; theme-reviewers mailing list<br>
&gt; <a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
&gt; <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
&gt;<br>
<br>
<br>
_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
</div></div></blockquote></div><br></div>