# Wordpress not opening posts with only numbers if permalink is post_name

Someone knows why this happens?

For instance, I have a post called 1987, but it does not open it when I click on the link. When I use a different permalink structure, it opens it. Why is this and how can I solve this?

FYI: I don't get a 404 error, I just get a Firefox error where it says: this page is not redirecting it well

-
this might have something to do with the date archive rewrite rule- WordPress thinks your numeric post name is a request for a date archive for the year 1987 –  Milo Jul 27 '13 at 15:06
Alright... Is that in htaccess? What do I have to do to solve it? –  Johan Jul 27 '13 at 15:07
Tentatively confirmed. Have you looked in trac to see if this is a know issue? –  s_ha_dum Jul 27 '13 at 15:08
No, but I did now... Can't see what to do actually. Is there a solution for this or not? –  Johan Jul 27 '13 at 15:11
This may take some effort to figure out. I'd bet that it does have something to do with date archives rewrites, as suggested by @Milo. If that is the case it is a bug in Core and possibly a difficult one. That is why I asked if you had searched Trac. –  s_ha_dum Jul 27 '13 at 17:26

Sorry I didn't follow up on this. You mentioned you weren't using date archives. You can change the date archive structure to remove the conflict with /%postname%/:

function wpa_change_date_structure(){
global $wp_rewrite;$wp_rewrite->date_structure = 'date/%year%/%monthnum%/%day%';
}

So now after permalinks are flushed, date archive URLs will be prefixed with date/, so numeric postnames will no longer match the date rewrite rule.