I have defined a custom URL that loads a custom template, as a customized "archive" por a custom post type.
I can't use the native archive since the page has a couple requisites that the archive doesn't fill, and I'm still using the default archive in a different view.
The thing is, when you use the default 'category' entries in the menu, WP is smart enough to apply the class
current_menu_parent to the appropriate entry in the menu, and you can style it accordingly.
But in my situation I have a menu entry that links to
custom_archive, where you can list see the pertinent CPTs, but when you go into a single view WP doesn't (can't?) know that
custom-archive is some kind of parent to it (and then I can't style the menu).
Is there a workaround to choose an arbitrary url as 'parent' to a post-type? Note: this URL is not an actual post object, just a
url_rewrite and a
Thanks and regards.