Plugin Directory

Changeset 2993504


Ignore:
Timestamp:
11/09/2023 07:29:55 PM (2 years ago)
Author:
opcodespace
Message:

Flexible content fixed

Location:
simple-export-import-for-acf-data/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • simple-export-import-for-acf-data/trunk/app.php

    r2989857 r2993504  
    55Plugin URI: https://www.opcodespace.com
    66Author: Opcodespace <mehedee@opcodespace.com>
    7 Version: 1.3.13
     7Version: 1.3.14
    88Text Domain: simple-export-import-for-acf-data
    99*/
     
    1313define("SEIP_VIEW_PATH", wp_normalize_path(plugin_dir_path(__FILE__) . "view/"));
    1414define("SEIP_ASSETSURL", plugins_url("assets/", __FILE__));
    15 define('SEIP_PLUGIN_VERSION', '1.3.13');
     15define('SEIP_PLUGIN_VERSION', '1.3.14');
    1616define('PAID_TEXT', '<small class="paid_text">(This is for paid user)</small>');
    1717
  • simple-export-import-for-acf-data/trunk/readme.txt

    r2989857 r2993504  
    9696
    9797== Changelog ==
     98= 1.3.14 =
     99* Bug Fixed: Importing data of Child Flexible Content fixed
     100
    98101= 1.3.13 =
    99102* Bug Fixed: Import Post type filtering fixed.
  • simple-export-import-for-acf-data/trunk/src/SeipImport.php

    r2989857 r2993504  
    220220            }
    221221
    222             $related_field = get_field_object($this->post_metas['_'.$key]);
     222            $keys = explode('_field_', $this->post_metas['_'.$key]);
     223            $no_of_keys = count($keys);
     224            if($no_of_keys > 1){
     225                $related_field = get_field_object('field_'.$keys[$no_of_keys - 1]);
     226            }
     227            else{
     228                $related_field = get_field_object($this->post_metas['_'.$key]);
     229            }
     230
    223231
    224232            if (!$related_field) {
Note: See TracChangeset for help on using the changeset viewer.