BUG: dublicate fields in Loop on Popular and Random Tab
This bug was found
aquiladibar in ACFCPv1.0.2
Temporary fix:
Open plugin file
advanced-custom-fields-for-ClassiPress/advanced-custom-fields-for-ClassiPress.php
Find this code:
PHP Code:
function acf_get_loop_options() {
if (!is_archive() && !is_search()) return;
global $acf_loop_ad_top,$acf_loop_ad_bottom,$acf_loop_ad_top_p,$acf_loop_ad_bottom_p,$acf_private,$acf_private_p;
$acf_private = array();
$acf_ad_options = get_option('acf_ad_fields');
And replace with:
PHP Code:
function acf_get_loop_options() {
if (!is_archive() && !is_search()) return;
global $acf_loop_ad_top,$acf_loop_ad_bottom,$acf_loop_ad_top_p,$acf_loop_ad_bottom_p,$acf_private,$acf_private_p;
if( isset($acf_loop_ad_top) ) $acf_loop_ad_top="";
if( isset($acf_loop_ad_bottom) ) $acf_loop_ad_bottom="";
if( isset($acf_loop_ad_top_p) ) $acf_loop_ad_top_p="";
if( isset($acf_loop_ad_bottom_p) ) $acf_loop_ad_bottom_p="";
$acf_private = array();
$acf_private_p = array();
$acf_ad_options = get_option('acf_ad_fields');
This fix will be added in ACFCPv1.1
Thank you!