Custom Post Type / Custom Fields / Form

This topic contains 4 reply and 3 voices, and was last updated by Sekander Badsha 9 years, 8 months ago
Viewing 4 Posts - 1 through 4 (of 4 total)
Author Posts
July 2, 2014 at 3:53 pm 22740
Sekander Badsha Hi, I've created a Custom Post Type with the 'TYPES' plugin and called it 'STORIES'. I've then created a Custom Field group called 'Story Fields'. I've assigned the Custom Field Group to the STORIES Custom Post Type and in the back-end I can edit / see the Custom Field Group. How do I insert these fields on my WP User Frontend Form using the Custom Field Group please? e.g I want WP User Frontend Form to populate the fields from the Custom Field Group. I have setup the form to post to the STORIES custom post type and I can see an populate the associated Custom Taxonomies but struggling to get the custom fields from the Custom Field Group to be populated in the form. Thanks Robin
July 5, 2014 at 11:17 am 22953
Sekander Badsha Sekander Badsha

Hello Robin,
Go to Settings > General Options > Custom Fields in post and check the box and click save. You’ll be able to see your custom post types in the front.

July 5, 2014 at 2:42 pm 22965
Robin Robin

No. You misunderstand. I want to populate ‘existing’ custom fields from a custom field groups defined by the TYPES plugin.

Not create new WPUF_ based ones.

Robin

July 23, 2014 at 7:52 pm 24021
Rachel Rachel

Hi there! I too am using the wonderful Types plugin to create custom fields and while I see the fields great on the back end and I added the Custom Field section to the form, they don’t show up for the user to add/edit those custom fields on the Edit page (just the title and body). I see them in the form, and in the post type. Also, if I use YOUR custom fields, I see those fine (but not in the back end).

Any idea how I can get the Types custom fields to appear OR have your custom fields appear in the back end?

Thanks!

August 3, 2014 at 8:22 pm 24450
Sekander Badsha Sekander Badsha

Hello Rachel and Robin,
You can use the custom fields with their meta keys.
Make a post from wp-admin and inspect the custom field’s meta keys by “Post Meta Inspector” plugin and use that keys in User Frontend’s form.

Like: WooCommerce adds the stock status with the meta key “_stock_status”. To insert data on this field, I’ll take a text field from the custom fields and add the “_stock_status” meta key into that field. So the data we insert in a field with a meta key “_stock_status” will go to WooCommerce without any difficulty.

Hope this helps. If you feel confused, please come back and post again.

Viewing 4 Posts - 1 through 4 (of 4 total)