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


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');
    		echo "<br>";

    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)

You must be logged in to reply to this topic.