Hide Section If Data Empty
Thu Jul 06 2023 11:10:25 GMT+0000 (Coordinated Universal Time)
Saved by
@gshailesh27
//Type 1
<?php $whoWeAre = get_post_custom_values($key = 'who-we-are-section-title');
if( !empty( $whoWeAre[0] )) {
?>
//Type 2
<?php $mykey_values = get_post_custom_values( 'capabilities-button-text' );
if( !empty( $mykey_values[$i] )) { ?>
//your code
<?php } ?>
//acf loop field hide
<?php
if()
?>
content_copyCOPY
Comments