How it works...
The permalink structure is stored in the wp_options table with a key called permalink_structure. The default value for this option is /%year%/%monthnum%/%day%/%postname%/.
Once the settings have been saved, this value will be updated to the selected value. Once the Post name has been selected, the value will be /%postname%/.
WordPress doesn't understand the pretty URLs provided by these custom permalink structures. So, the rewrite modules for different web servers convert this pretty URL into the default URL with the post ID.
In old versions, WordPress used to have a Plain option with a post ID as a query parameter. This structure was not user-friendly, nor search engine-friendly. So, the latest versions come up with Day and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access