Populate a field with WordPress Posts
add_filter(‘frm_setup_new_fields_vars’, ‘frm_populate_posts’, 20, 2); add_filter(‘frm_setup_edit_fields_vars’, ‘frm_populate_posts’, 20, 2); //use this function on edit too function frm_populate_posts($values, $field){ if($field->id == 125){ //replace 125 with the ID of the field to populate $posts = get_posts( array(‘post_type’ => ‘post’, ‘post_status’ => array(‘publish’, ‘private’),…Continue reading