WordPress permalink settings note: Behavior when %postname% is a date

In WordPress, permalink settings are important for SEO and usability. Under certain settings, they can cause unintended behavior.

Specifically, if you specify /information/%postname%/ as a permalink setting and the %postname% portion is in date format (e.g., 2023-07-19), the post page will not display as expected and will instead tend to display as an archive page in /information/. This is because WordPress does not allow permalinks.

This is likely because when WordPress parses the permalink path, it interprets the date format string as a date filter for the archive page.

To avoid this problem, you should pay attention to your post slug settings or review your permalink settings so that %postname% is not in date format.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top