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 "No Title", 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"><<a href="mailto:michael@mfields.org">michael@mfields.org</a>></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( '<h2>', '</h2>' );<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>
> Ran across this suggestion on the WPORG support forums:<br>
><br>
> <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>
><br>
> I like this approach; it is cleaner than performing a conditional test in<br>
> the template file.<br>
><br>
> Just thought I'd pass it along...<br>
><br>
> Chip<br>
</div></div><div><div></div><div class="h5">> _______________________________________________<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>
><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>