use query string in URL to display content on the page

Per the OP’s answer within their question:

With your help and some Googling, I put together a shortcode that returns the value of any url parameter. Here it is:

//THIS IS A CUSTOM SHORTCODE TO DISPLAY A PARAMETER FROM THE URL
function URLParam( $atts ) {  
    extract( shortcode_atts( array(
        'param' => 'param',
    ), $atts ) );
    return $_GET[$param];  
}
add_shortcode('URLParam', 'URLParam'); 

I use the shortcode like this to get the trip_type from my URL:

[URLParam param='trip_type']

Leave a Comment