Viewing 3 replies - 16 through 18 (of 18 total)
  • Couple things

    1) If you have a form that may have blank data and you don’t want those fields to be created after update make the change dskvr suggests above and enclose the 2 following lines in an if blank check.

    $meta = get_post_meta($this->post['ID'], $field['postCustomFieldName'], true);
    
    		if($meta != '') {
    
            	delete_post_meta($this->post['ID'], $field['postCustomFieldName']);
    
            	add_post_meta($this->post['ID'], $field['postCustomFieldName'], is_array($meta) && count($meta) == 1 ? $meta[0] : $meta, true);
    		}

    For cleanapple, you have to make sure your link is in the WP loop on your template otherwise the_ID will not work – maybe that’s it?

    Where does this get_post_meta go?

    I’ve included ““>Edit This Post” on the page which displays the post and it does display the expected post – BUT custom fields are not initialized. What do I have to do to make this work?

    OK – my mistake

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘[Plugin: Gravity Forms – Update Post] What does this plugin do??’ is closed to new replies.