Hi
Apologies if this is easy / already documented!
Scenario is: I have an object custom post type, thus have a single-object.php to display that specific single.
But – I have another bit of the site where I want to show the same information as single-object but in a modal, and without various elements (header, navigation, footer).
Normally I’d just pass in a querystring, say single-object.php?display=modal or similar – and then use this to hide stuff on the site.
I can do this in my child theme – but is there a more cunning way using GP hooks / filters?
Thanks
Mike