<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Mine just outputs "untitled" now. However, I've added a "no-title"
CSS class where users can use display: none if they don't want that
to appear.<br>
<br>
There are definitely several different approaches though.<br>
<br>
On 3/8/2011 3:32 PM, Emil Uzelac wrote:
<blockquote
cite="mid:AANLkTimD5sxTEZ67o+f4TKwXAU8APnMHgmDVPzrH7SQj@mail.gmail.com"
type="cite"><font class="Apple-style-span" face="tahoma,
sans-serif">I like the filter, good approach, also simple use
for this would be:<br>
</font>
<div><span class="Apple-style-span" style="font-family:
tahoma,sans-serif;"><br>
</span></div>
<div><span class="Apple-style-span" style="font-family:
tahoma,sans-serif;"><h1 class="entry-title"></span></div>
<div><font size="2"><font face="tahoma,sans-serif">
<div> <?php</div>
<div> if ( ! get_the_title() ) {</div>
<div> print '<a href="' . esc_url( get_permalink()
) . '">Untitled</a>';</div>
<div> ?></div>
<div> <a href="<?php the_permalink(); ?>"
title="<?php printf( esc_attr__( 'Permalink to %s',
'fit' ), the_title_attribute( 'echo=0' ) ); ?>"
rel="bookmark"><?php the_title(); ?></a></div>
<div></h1></div>
<div><br>
</div>
<div>Michael/Chip combination.</div>
<div><br>
</div>
<div>If there is no title the Untitled will need to be in
place where h1 should be instead of having h1 empty in
source code and place a link on top somewhere. i.e. "Empty
Text Node" is there but not visible to let's say Search
Engines or any site that would crawl this.</div>
<div><br>
</div>
<div>Emil</div>
<div><br>
</div>
</font></font>
<div><strong>Emil Uzelac</strong> | ThemeID | T: 224-444-0006 |
Twitter: @EmilUzelac | E: <a moz-do-not-send="true"
href="mailto:emil@themeid.com" target="_blank">emil@themeid.com</a>
| <a moz-do-not-send="true" href="http://themeid.com/"
target="_blank">http://themeid.com</a></div>
<div><font color="#999999">Make everything as simple as
possible, but not simpler. - Albert Einstein</font></div>
<br>
<br>
<br>
<div class="gmail_quote">On Tue, Mar 8, 2011 at 2:56 PM, Edward
Caissie <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:edward.caissie@gmail.com">edward.caissie@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
Perhaps I wasn't clear with my earlier reply ...<br>
<br>
I agree with Mike on the title should be empty if the author
chooses not to write one; although I also would not
recommend this particular item fall under the Theme Review
guidelines. The end-users will make it clear if they think
the Theme author's design concept fits their needs ... or
not.<br>
<br>
I'm still not thrilled with the method I am using in my
themes but this has given me a few more ideas to play with.
<div>
<div class="h5"><br>
<br>
<div class="gmail_quote">On Tue, Mar 8, 2011 at 3:45 PM,
Chip Bennett <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:chip@chipbennett.net" target="_blank">chip@chipbennett.net</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt
0pt 0.8ex; border-left: 1px solid rgb(204, 204,
204); padding-left: 1ex;">I would use:
<div><br>
</div>
<blockquote style="margin: 0pt 0pt 0pt 40px; border:
medium none; padding: 0px;">
<div>if ( ! get_the_title() )</div>
</blockquote>
<div><br>
</div>
<div>Rather than:</div>
<div>
<div><br>
</div>
<blockquote style="margin: 0pt 0pt 0pt 40px;
border: medium none; padding: 0px;">
<div>$title = the_title( '', '', false );<br>
if ( empty( $title ) )</div>
</blockquote>
<div><br>
</div>
</div>
<div>But, that doesn't really address your
underlying point, which I believe is valid, but
outside the scope of the Theme Review guidelines.
I think we've got a good balance, by requiring a
permalink to the Single-Post view, but not
dictating *how* that permalink appears. Our
concern is the UX; the design consideration can
remain a matter between the developer and the end
users. I'd prefer we, as Theme reviewers, not get
in the middle of that.</div>
<div><br>
</div>
<div><font color="#888888">Chip</font>
<div>
<div><br>
<br>
<div class="gmail_quote">On Tue, Mar 8, 2011
at 2:39 PM, <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:michael@mfields.org"
target="_blank">michael@mfields.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin: 0pt 0pt 0pt 0.8ex;
border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
Right on, I can totally see that need. The
main thing the erks me about<br>
solutions such as this is that they take
the authors intentions and throw<br>
them out the window. If I am writing a
post and I choose to leave the<br>
title blank, I would expect the title to
be blank. I do not want the title<br>
replaced with "no title". To me it has the
effect of a designer leaving in<br>
FPO images in a finished design ... IMO it
looks sloppy.<br>
<br>
If a permalink is needed, I would suggest
that it be added somewhere else<br>
in the template in a conditional check.
the_title can still be used for<br>
this:<br>
<br>
$title = the_title( '', '', false );<br>
if ( empty( $title ) ) {<br>
print '<a href="' . esc_url(
get_permalink() ) .
'">Permalink</a>';<br>
}<br>
<br>
-Mike<br>
<div>
<div><br>
<br>
> The issue arises when Post Title
is the only available permalink to the<br>
> Single-Post view. In this case,
the developer may want to provide text<br>
> such<br>
> as "No Title", etc., so that the
permalink still gets displayed.<br>
><br>
> Chip<br>
><br>
> On Tue, Mar 8, 2011 at 2:15 PM,
<<a moz-do-not-send="true"
href="mailto:michael@mfields.org"
target="_blank">michael@mfields.org</a>>
wrote:<br>
><br>
>> 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>
>><br>
>> > Ran across this
suggestion on the WPORG support
forums:<br>
>> ><br>
>> ><br>
>> <a moz-do-not-send="true"
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<br>
>> in<br>
>> > the template file.<br>
>> ><br>
>> > Just thought I'd pass it
along...<br>
>> ><br>
>> > Chip<br>
>> >
_______________________________________________<br>
>> > theme-reviewers mailing
list<br>
>> > <a
moz-do-not-send="true"
href="mailto:theme-reviewers@lists.wordpress.org"
target="_blank">theme-reviewers@lists.wordpress.org</a><br>
>> > <a
moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:theme-reviewers@lists.wordpress.org"
target="_blank">theme-reviewers@lists.wordpress.org</a><br>
>> <a moz-do-not-send="true"
href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers"
target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
>><br>
>
_______________________________________________<br>
> theme-reviewers mailing list<br>
> <a moz-do-not-send="true"
href="mailto:theme-reviewers@lists.wordpress.org"
target="_blank">theme-reviewers@lists.wordpress.org</a><br>
> <a moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:theme-reviewers@lists.wordpress.org"
target="_blank">theme-reviewers@lists.wordpress.org</a><br>
<a moz-do-not-send="true"
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>
</div>
</div>
<br>
_______________________________________________<br>
theme-reviewers mailing list<br>
<a moz-do-not-send="true"
href="mailto:theme-reviewers@lists.wordpress.org"
target="_blank">theme-reviewers@lists.wordpress.org</a><br>
<a moz-do-not-send="true"
href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers"
target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
<br>
_______________________________________________<br>
theme-reviewers mailing list<br>
<a moz-do-not-send="true"
href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a moz-do-not-send="true"
href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers"
target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
theme-reviewers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a>
<a class="moz-txt-link-freetext" href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a>
</pre>
</blockquote>
</body>
</html>