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:

[acf field="my_field"]        

But now, using the Beaver Tunnels shortcode, it would look like this:

[beaver_tunnels][acf field="my_field"][/beaver_tunnels]        

This will give the shortcode access to the $post object and $wp_query object for the page it is being displayed on.