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
Post a Comment