PHP code example of acato-plugins / cmb2-flexible-content

1. Go to this page and download the library: Download acato-plugins/cmb2-flexible-content library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

acato-plugins / cmb2-flexible-content example snippets


$flexible_fields = get_post_meta( $post_id, 'flexible_field_name', true );
foreach( $flexible_fields as $field ) {
    if ( 'text' === $field['layout'] ) {