Custom Fields
Re-Envisioned
Support General Eval()'error with sample code from your website

  • Creator
    Topic
  • #32608
    Resolved info@ceescoenen.nl
    Participant

    Hi,

    Sorry, I am a little tired that there is most of the time an error when I tried your code from the website. I have an filed advanced added. Use this sample : https://docs.metabox.io/fields/file-advanced/ and again an error :

    Warning: Invalid argument supplied for foreach() in /home/stagingechopper/public_html/wp-content/plugins/oxygen/component-framework/components/classes/code-block.class.php(115) : eval()'d code on line 5

    Maybe I am not the best developer but why there is always happens with the samples?

    <?php
    
    $field_id = 'ws-dp--voorwaarden_pdf';
    $files = rwmb_meta($field_id);
    foreach ( $files as $file ) {
        ?>
        <a>"><?php echo $file['name']; ?></a>
        <?php
    }
    
    ?>
Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #32609
    info@ceescoenen.nl
    Participant

    You can remove this post

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.