function get_query_string_vars( $atts ) {
// Set up the default parameters
$a = shortcode_atts( array(
‘param’ => ‘default_param’,
‘default’ => ‘Not found’,
), $atts );

// Check if the parameter exists in the query string
if ( isset( $_GET[ $a[‘param’] ] ) ) {
// Return the value of the parameter
return $_GET[ $a[‘param’] ];
} else {
// Return the default value if the parameter does not exist
return $a[‘default’];
}
}
add_shortcode( ‘get_query_var’, ‘get_query_string_vars’ );