Generating a Rewrite Rule for sSecific Post-Requests from a Submitted Form?
I imagine that wouldn’t be too difficult. Assuming the number of custom ‘dynamic’ urls is known, this should do the trick: foreach ( array( ‘most-recent’,’last-week’,’category-1/most-recent’,’category-1/last-week’) as $page ) add_rewrite_rule( “$page/?$”, ‘index.php’, ‘top’ ); What this does is tells WordPress “Whenever you have a url structure that matches X, treat it as if the url were … Read more