Rewriting URLs in WordPress
I am trying to solve a rewrite problem but don’t fully understand how to read the below code. I believe the event/industry/(.+)/?$’ is stating the format I want in my new url after rewritten, which should be example.com/event/industry/someterm/ And this part appears to be the parameter. => ‘index.php?post_type=eg_event&industry=’ . $wp_rewrite->preg_index(1) Is this a correct understanding? … Read more