<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Right, I get that. I guess perhaps it's more an issue of why
WordPress allows you to publish a post without a title in the first
place. It seems to me that posts without titles have bigger problems
than whether or not a user can get to them.<br>
<br>
Actually, as I'm writing this email, Emil posted a solution on the
trac ticket that i really like:<br>
<pre wrap="">/**
* Where the post has no post title, but must still display a link to the
single-page post view.
*/
add_filter('the_title', 'blank_slate_title');
function blank_slate_title($title) {
if ($title == '') {
return 'Untitled';
} else {
return $title;
}
}
</pre>
This way you don't have to include an extra link if you don't want
to.<br>
<br>
Thanks, Emil!<br>
<br>
<br>
On 4/20/11 1:58 PM, Chip Bennett wrote:
<blockquote
cite="mid:BANLkTino77v7GKFdcyo3nFeA6MJte7d7kA@mail.gmail.com"
type="cite">Because the user needs to have *some* way of reaching
the single-post view.
<div><br>
</div>
<div>Chip<br>
<br>
<div class="gmail_quote">On Wed, Apr 20, 2011 at 3:55 PM, Philip
Walton <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:philip@philipwalton.com">philip@philipwalton.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;">A user, in response to a rejected them,
posed this question re: smgrundy's review:<br>
<br>
Cannot access single-page views of posts without titles from
the index.<br>
-> That's good, consistent and how I want it throughout
the site. Is this mandatory?<br>
<br>
I've wondered the same things as well. It's always seemed a
little odd to me to have the post date link to the post
itself. Personally I think the date should link to a date
page. I know there are other ways to create a title-less
permalink, but this is the most common.<br>
<br>
Still, what is the rationale behind requiring posts with no
titles to have a permalink to them?<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>
</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>