/ Published in: PHP

Populate Fields from Post Data
Add this to functions.php
Add this to functions.php
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
add_filter("gform_field_value_cname", "populate_cname"); function populate_cname($value){ global $post; $cname = get_post_meta($post->ID, 'firstname', true); return $cname; }
Comments
