I can’t upload image when using AFC plugin

To solve this bug:

If you are using the free version of AFC plugin: Accessing to your hosting -> Your WordPress content -> wp-content -> plugins -> advanced-custom-fields -> core -> controllers -> Opening field_group.php -> Go to line 378 -> Replacing the current code with


<?php echo isset($_REQUEST['listing_id']) ? $_REQUEST['listing_id'] : "''"; ?>;

If you are using Pro version: Accessing to your hosting -> Your WordPress content -> wp-content -> plugins -> advanced-custom-fields-pro -> includes -> Opening input.php -> go to line 242 -> Replacing the current code with

‘post_id’ => !is_admin() && isset($_REQUEST[‘listing_id’]) ? $_REQUEST[‘listing_id’] : acf_get_form_data(‘post_id’),

 

Leave A Comment?