wordpress - is_page post_parent and cookie issue -


the first time visitor visits homepage video played , cookie set. when cookie expires video popup again. on page it's parent pages video should not play if first time visitor visits pages or cookie has expired. i'm using wordpress.

if (is_page('60') || $post->post_parent == '60' && (isset($_cookie['my_cookie']))) { // not play video } else { // play video } 

kind regards


Comments

Popular posts from this blog

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -