Support

Account

Home Forums Backend Issues (wp-admin) update_sub_field weirdness in cron for option page

Helping

update_sub_field weirdness in cron for option page

  • I have a repeater working swimingly on an options page, but I have a cron job that attempts to update one of the sub-fields. I stripped out the core update code and dropped it in a file just to make sure it could actually get to the data.

    if(have_rows('popup_images', 'option')){
    	while( have_rows('popup_images', 'option') ): the_row();
    		update_sub_field('field_59c3adc0cbdc1', 'fall-18-fm-pledge-b');
    		the_sub_field('field_59c3adc0cbdc1');
    		echo "<br>";
    	endwhile;
    }

    In the code above, the update does not fire, but the field returns just fine (with the previously set value). Anybody run into something like this and/or have a workaround?

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘update_sub_field weirdness in cron for option page’ is closed to new replies.