Closed joshdarby closed 4 years ago
should /categories/ be hardcoded or should we instead grab a specific post id and grab its permalink?
I'm fine with it being /categories/
rather than a specific post ID; this way they can change the post or set up some other redirect from /categories/
to something else.
Changes
This pull request makes the following changes:
sfpp_category_tag_404_override
that hooks into thetemplate_redirect
filter and attempts to automate creation of a redirect for category and tag terms to/categories/
if the url ends up being a 404Why
For #97
Testing/Questions
Features that this PR affects:
Questions that need to be answered before merging:
$redirection_info
array?/categories/
be hardcoded or should we instead grab a specific post id and grab its permalink?Steps to test this PR:
/categories/