WordPress.org

Forums

[resolved] View Previous Post Link doesn't work with a post that has no title (8 posts)

  1. kiyamia
    Member
    Posted 4 years ago #

    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.

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    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.

  3. kiyamia
    Member
    Posted 4 years ago #

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

  4. esmi
    Forum Moderator
    Posted 4 years ago #

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

  5. kiyamia
    Member
    Posted 4 years ago #

    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.

  6. kiyamia
    Member
    Posted 4 years ago #

    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.

  7. esmi
    Forum Moderator
    Posted 4 years ago #

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

  8. kiyamia
    Member
    Posted 4 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic