Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Waiting for user confirmation] How to hide a View if the url parameter does not match?

$
0
0

Hi Caridad
That's done the trick … all working great thank you.

Please can I check … you know the code you said to put into the functions.php file …. this code:

add_shortcode( 'wpv-post-param', 'wpv_post_param_shortcode' );
function wpv_post_param_shortcode( $atts ) {
  if ( !empty( $atts['var'] ) ) {
    $var = (array)$_REQUEST[$atts['var']];
    return esc_html( implode( ', ', $var ) );
  }
}

Do I still need this for the updated evaluation method? I think it might have been specific to the previous method which we are no longer using.

Thanks


Viewing all articles
Browse latest Browse all 20145

Trending Articles