I have a custom taxonomy "stat groups" (non-hierarchical) for my custom post type "stats".
I created a link on the edit page for the chosen stat group term on the edit page for a stat.
After clicking the link and submitting the changes to that term, wp redirects to the edit-tags.php but without the post type in the query string... So the edit page comes up correctly, but in the navigation, it is showing the expanded "Posts" section instead of my custom post type's.
This is particularly annoying because I have custom css for the custom taxonomy's edit page, because there are added fields, and it is just messing it all up when it doesn't include the post type in the query string
I am guessing this is happening because of the http_referrer?
I cannot figure out how to get it to redirect back to the custom post edit page on saving the custom taxonomy term.
I have tried passing the redirect url in the query string to the edit page for the term, capturing it from the $_GET var, putting it in a hidden input value, then capturing it from the $_POST on save and trying to redirect using it after the save but it's not working. I've tried using wp_redirect as well as redirect canonical there.
So what I really want to do is for it to redirect back to the referring stats edit page for the post it was on after saving the edits to the custom tax term. If I can't do that, I'd at least like it to redirect to the right edit-tags page.
Anyone? Thanks for any help in advance! :)