Quantcast
Viewing all articles
Browse latest Browse all 20145

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

Sorry, I had missed that.

I'm still getting thte same error, unexpected =>

Here is the entire code:

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

Viewing all articles
Browse latest Browse all 20145

Trending Articles