Beaver Tunnels Shortcode
If you want to use a shortcode in a tunneled Template to display data related to the page the Template is being displayed on, you will need to use the Beaver Tunnels shortcode.
Using Advanced Custom Fields for example, you would normally use:
But now, using the Beaver Tunnels shortcode, it would look like this:
This will give the shortcode access to the
$post object and
$wp_query object for the page it is being displayed on.