Calling body_class and wp_nav_menu for a different post
This approach sounds complex, hacky and not reliable, as there could be various filters/actions that might be skipped. Two alternative semi-workarounds comes to mind, to get the wp_nav_menu() and body_class(), for a given post page: Use the HTTP API / Ajax to make a request for the post page and e.g. use a GET parameter … Read more