WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] View Previous Post Link doesn't work with a post that has no title

[Resolved] View Previous Post Link doesn't work with a post that has no title

  • I’m having this problem when testing themes with WordPress’ own test data.

    The blog has permalinks turned on. One of the test posts has no title. When you are in the post before the no-title post and click on the “Previous Post” link, you get a 404 error. Is this a WP bug? It’s driving me nuts.

    I’m assuming that the problem could be resolved by creating a permalink regardless of not having a title, but this is not very friendly to users who are “technically challenged.”

    Your help / comments are appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • esmi

    @esmi

    Forum Moderator

    I’ve not come across this issue before. Can you confirm it using the Twenty Ten theme?

    The point of the “No Title” post is that the theme should be intelligent to this possibility and generate a default title in these situations.

    Yes, this is with the starker, 2010 and every other theme so far.

    esmi

    @esmi

    Forum Moderator

    Have you tried editing the theme to generate a default title in these situations?

    No I haven’t gone into that amount of depth yet. I haven’t had any clients that were likely to do the above. It’s just getting on my nerves every time it happens.

    It did occur to me that it might have something to do with the specific permalink structure that I’m using.

    I think this is the structure I’m using. I will have to check.

    http://example.com/year/month/post-name

    for the no-title post it creates the link as

    http://example.com/year/month/day/

    I’m going to check this later today and confirm.

    esmi

    @esmi

    Forum Moderator

    I’ve tested using Twenty Ten and the same permalink structure and I can’t replicate the problem.

    I verified, this is the permalink setting. Odd that you don’t get it…

    /%year%/%monthnum%/%postname%/

    I just checked by creating a no-title post on my own and didn’t have this problem. I think it must be something with the WordPress test file. It doesn’t set the correct number for the post or something.

    Thanks for your your replies esmi!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] View Previous Post Link doesn't work with a post that has no title’ is closed to new replies.