This code works in single.php but it does not work in content.php in the template-parts folder.

<?php if( $opt_name['content-meta-hide'] == '1' ){ ?>
    <div class="entry-meta">
    <?php }; ?>

Read more here: Redux Framework does not work on some files


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: