First off you can't use internal function calls to display entry data in your themes functions.php file. So using get_gf_field_value($form_id, $field_id) isn't going to work. That is for entry data, not post data.
Secondly the Press75 site uses Custom Fields for these data.
They have a Gravity Form that is configured to create a WordPress post. In order to do this you need to use Post Fields. Post Fields are the only field types that will create a WordPress Post from a form.
If you want a field for location you would have to use a Post Custom Field and give it a name of location (the name is the key when configuring the custom field) and then in your theme you would have to display the custom field with the key location.
This is how Press75 is doing things with their job post theme. They use Gravity Forms with Post Custom Fields and store the data in post meta and then their theme is configured to display that custom field.
So if you are creating a post using a Gravity Form you need to make sure you are using the Post Fields.
- Post Title to create the title of the post
- Post Body to create the content of the post
- Post Custom Fields to create custom fields
If you want to display the custom field values in your theme you have to then configure your theme to show the custom field values. It doesn't do this automatically, you have to configure your theme to output this information.
Posted 9 years ago on Wednesday February 16, 2011 | Permalink