Losing the original URL when using add_rewrite_rule

wow, after more banging of my head against the wall, it took this: add_rewrite_rule(‘work/all/([^/]*)/([^/]*)/?’, ‘index.php?post_type=project&name=$matches[2]&mode=all’, ‘top’); Two things actually, I had to include a post_type=project part as well as change pagename to name. If I remove either one, I get my previous results. I am not sure why this set of values works when other … Read more