Suggestion?<div><br></div><div>Yes: don't name Post Titles as numbers-only, when using a date-based permalink structure. :)</div><div><br></div><div>Chip<br><br><div class="gmail_quote">On Wed, Apr 27, 2011 at 5:55 AM, Taryn Wallis <span dir="ltr"><<a href="mailto:taryn@phenomenoodle.com">taryn@phenomenoodle.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font color="#000000"><font size="2"><font face="arial,helvetica,sans-serif">Hi again Chip (and others!)<br><br>Another comment re the issue with the post ID for the post with no title - any suggestions?<br>
<br><br></font></font></font><div class="im"><div>
#3553: THEME: The Common Blog - 1.0<br>
---------------------------+----------------------------------<br>
Reporter: <a href="http://plebeian.se/" target="_blank">plebeian.se</a> | Owner: phenomenoodle<br>
Type: theme | Status: closed<br>
Resolution: not-approved | Keywords: theme-the-common-blog<br>
---------------------------+----------------------------------<br>
<br>
</div></div>Comment (by feedmeastraycat):<br>
<br>
Hello<br>
<br>
I'm a friend of Mark and helped him locate this ... thing. That I still<br>
think is a bug. :)<br>
<br>
1. Create a regular post created on 31th of March 2011 with title "Test"<br>
(gets slug "test")<br>
2. Create another one on 14th of March 2011, but with title "31" (gets<br>
slug "31")<br>
3. Create another one on 14th of March 2011, but with title "32" (gets<br>
slug "32")<br>
4. Make sure permalinks is Month and name<br>
<br>
- The link for the first post gets /2011/03/test/ and works fine<br>
- The link for the second post gets /2011/03/31/ and shows a day archive<br>
for 31st of march 2011, which is the first post (if no posts exist on this<br>
date it gets 404, this is why this test case creates the first post on<br>
that specific date)<br>
- The link for the third post gets /2011/03/32/ and gives a 404<br>
<br>
The breaking point for the slug seams to be 100. Cause if you edit the<br>
slug of post 3 to 100 it gets /2011/03/100/ and works fine. But 99 gives<br>
error.<br>
<br>
If you put slug "0" you get /2011/03/0/ and you get month archive.<br>
<br>
This test puts in 31 as a slug manually. But the error is be the same if<br>
you have a post id 31 and put no title. Cause a post id 31 without title<br>
gets 31 as a slug. For example if you forget to put a title on your first<br>
post it will get /2011/03/1/ and shows a 404 (if it isn't the 1st when you<br>
post it in which case it shows a day archive for that day and shows that<br>
post) :)<br>
<br>
As long as the slug contains a letter this doesn't matter.<br>
<br>
<br>
Maybe I should put this into <a href="http://trac.wordpress.org/" target="_blank">trac.wordpress.org</a>?<br>
<br>
<br>
Regards,<br>
David<br><font color="#888888">
<font color="#888888"><br>
--<br>
Ticket URL: <<a href="http://themes.trac.wordpress.org/ticket/3553#comment:8" target="_blank">http://themes.trac.wordpress.org/ticket/3553#comment:8</a>></font><br clear="all"><span style="font-family:verdana,sans-serif;color:rgb(51, 51, 51)">___________________________________________________________________</span></font><div>
<div></div><div class="h5"><br style="font-family:verdana,sans-serif;color:rgb(51, 51, 51)">
<br><br>
<br><br><div class="gmail_quote">On Tue, Apr 26, 2011 at 9:03 PM, Taryn Wallis <span dir="ltr"><<a href="mailto:taryn@phenomenoodle.com" target="_blank">taryn@phenomenoodle.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<font color="#000000"><font size="2"><font face="arial,helvetica,sans-serif">Ah, I see. Thanks, Chip!<br clear="all"></font></font></font><span style="font-family:verdana,sans-serif;color:rgb(51, 51, 51)">___________________________________________________________________</span><br style="font-family:verdana,sans-serif;color:rgb(51, 51, 51)">
<font color="#888888">
<br style="font-family:verdana,sans-serif;color:rgb(51, 51, 51)"><b style="color:rgb(51, 51, 51);font-family:arial,helvetica,sans-serif">Taryn Wallis</b><br style="font-family:arial,helvetica,sans-serif;color:rgb(51, 51, 51)">
<span style="font-family:arial,helvetica,sans-serif;color:rgb(51, 51, 51)">Phenomenoodle</span><br style="font-family:arial,helvetica,sans-serif;color:rgb(51, 51, 51)"><span style="font-family:arial,helvetica,sans-serif;color:rgb(51, 51, 51)">WordPress website design & development for small businesses with big dreams</span><br style="font-family:arial,helvetica,sans-serif;color:rgb(51, 51, 51)">
<a style="font-family:arial,helvetica,sans-serif;color:rgb(0, 0, 153)" href="http://www.phenomenoodle.com" target="_blank">www.phenomenoodle.com</a><br style="font-family:arial,helvetica,sans-serif;color:rgb(51, 51, 51)">
<span style="font-family:arial,helvetica,sans-serif;color:rgb(51, 51, 51)">+44 1875 34 0044</span><br style="font-family:arial,helvetica,sans-serif;color:rgb(51, 51, 51)"><span style="font-family:arial,helvetica,sans-serif;color:rgb(51, 51, 51)">+44 774 839 8473</span></font><div>
<div></div><div><br>
<br>
<br><br><div class="gmail_quote">On Tue, Apr 26, 2011 at 8:45 PM, Chip Bennett <span dir="ltr"><<a href="mailto:chip@chipbennett.net" target="_blank">chip@chipbennett.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It's not really a "bug". It is a result of importing the test data. On the source site (<a href="http://wpthemetestdata.wordpress.com" target="_blank">wpthemetestdata.wordpress.com</a>), the PostID for that post is "14". However, the Post ID changes upon import. The solution is to delete the post slug, and to let WordPress re-generate it.<div>
<br></div><div>I will add this clarification to the list of Codex changes I need to make.</div><div><br></div><div>Chip<br><br><div class="gmail_quote"><div><div></div><div>On Tue, Apr 26, 2011 at 2:42 PM, Taryn Wallis <span dir="ltr"><<a href="mailto:taryn@phenomenoodle.com" target="_blank">taryn@phenomenoodle.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div><font color="#000000"><font size="2"><font face="arial,helvetica,sans-serif">In one of the themes I reviewed (</font></font></font><font color="#888888"><a href="http://themes.trac.wordpress.org/ticket/3553#comment:6" target="_blank">http://themes.trac.wordpress.org/ticket/3553</a>)</font><font color="#000000"><font size="2"><font face="arial,helvetica,sans-serif">, I noted that the post with no title wasn't showing up in the blog and gave a 404 error when I tried to access it directly (via the 'view post' link in the Posts screen).<br>
<br>The theme author has written the response below detailing a bug he found - has anyone come across this before?<br><br>Thanks for your help!<br>T<br clear="all"></font></font></font><span style="font-family:verdana,sans-serif;color:rgb(51, 51, 51)"></span><br>
<br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">WordPress Themes</b> <span dir="ltr"><<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a>></span><br>
Date: Tue, Apr 26, 2011 at 7:40 PM<br>Subject: Re: [WordPress Themes] #3553: THEME: The Common Blog - 1.0<br>To: <br><br><br><div>#3553: THEME: The Common Blog - 1.0<br>
---------------------------+----------------------------------<br>
Reporter: <a href="http://plebeian.se" target="_blank">plebeian.se</a> | Owner: phenomenoodle<br>
Type: theme | Status: closed<br>
Resolution: not-approved | Keywords: theme-the-common-blog<br>
---------------------------+----------------------------------<br>
<br>
</div>Comment (by <a href="http://plebeian.se" target="_blank">plebeian.se</a>):<br>
<br>
Regarding "(no title) post not displayed and gives 404 error", I switched<br>
to Twentyten and noticed that it had the same error. After some testing I<br>
discovered that if you set your permalink structure to "Month and name",<br>
and you have a low post id, WordPress takes the post id as a date.<br>
<br>
Example:<br>
An empty post with id number 14, posted on the 4th march 2011, will get<br>
permalink /2011/03/14/, if you have "Month and name".<br>
This will give a 404 if you have no posts posted on the 14th of march<br>
2011. And it will give an "day archive" for the 14th of march 2011 if you<br>
have any other posts on that specific date.<br>
If you change this to "Day and name" instead the post permalink will be<br>
/2011/03/04/14/ and the post is found.<br>
<br>
Ive changed my common settings to "Day and name" and you can see that it<br>
works here:<br>
<a href="http://www.plebeian.se/dev/2008/05/04/14/" target="_blank">http://www.plebeian.se/dev/2008/05/04/14/</a><br>
<br>
And like I said, Twentyten has the exact same "bug".<br>
<br>
If the post ID is bigger, like 403 or something, this problem doesn't<br>
exist. Basically, I think it's not a problem as long as the post id is<br>
bigger then the number of dates in the specific month of that post. A post<br>
id 31 will work if posted in February. But not in march.<br>
<br>
<br>
Do I still need to fix this? :)<br>
<font color="#888888"><br>
--<br>
Ticket URL: <<a href="http://themes.trac.wordpress.org/ticket/3553#comment:6" target="_blank">http://themes.trac.wordpress.org/ticket/3553#comment:6</a>><br>
</font><div><div></div><div>WordPress Themes <<a href="http://themes.trac.wordpress.org/" target="_blank">http://themes.trac.wordpress.org/</a>><br>
WordPress.org Theme Directory Reviews<br>
</div></div></div><br>
<br></div></div>_______________________________________________<br>
theme-reviewers mailing list<div><br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
</div><a 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>
<br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">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></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div><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>
<br></blockquote></div><br></div>