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

Reply To: [Waiting for user confirmation] Detect child and hide div

$
0
0

Unfortunately I'm still receiving the same error. It simply does not like the => on the first line.

<?php
	$children = get_posts ('meta_key' => '_wpcf_belongs_review_id', 'meta_value' => $post->ID, 'post_type' => 'review');
        if( count( $children ) > 0 ) {?>
            <style type="text/css">#review{display:none;}</style>           
            <?php }
        else { }
?>

Viewing all articles
Browse latest Browse all 20145

Trending Articles