Skip Navigation

[Resolved] Cred create content custom image gallery images to product media gallery

This support ticket is created 8 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Pagel 8 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#399821

Hello,

I have custom field for products "my_product_image_gallery" where I can upload multiple images to my product using cred form. I would like these images to be uploaded to product media gallery as well. I have followed the instruction here for the cred edit:

https://toolset.com/forums/topic/edit-form-problem-displaying-product-pictures/

It is working great on edit content but how to add this functionality to cover create content as well?

I have looked on https://toolset.com/documentation/user-guides/cred-api/#csd

But still I am not able to get it going.

BR
Pagel

#399835

Dear Pagel,

You can use same PHP function to your new CRED form, for example:
replace this line from:

if ($form_data['id']==285)

To:

if (in_array($form_data['id'], array( 285, 123)))

please replace the 123 with the CRED form for creating post.

More help:
hidden link

#400080

Hi,

that was it! Thanks!

BR
Pagel

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.