Register Custom WordPress Rewrite Rules with add_rewrite_rule and add_re ...
Custom URL structures with add_rewrite_rule() and query variables Post types, taxonomies and endpoints produce their URLs automatically. When you need a structure that none of them gives, for example /docs/installation/requirements/ where the first part is a section and the second a document, you write the rule yourself: a regular expression for the path and the…
Details