Tell us what you are trying to do?
I want to make first photo that I upload from gallery field as featured image
Is there any documentation that you are following?
https://toolset.com/forums/topic/use-first-uploaded-image-as-featured-image/
Is there a similar example that we can see?
What is the link to your site?
versteckter Link
Hi Steve,
Thank you for getting in touch.
Would you mind allowing me to have admin access to the website so that I can have a more detailed look at this for you ?
Please where applicable please provide me with a link to an example page where I can see the issue.
I've enabled the private fields for your next response.
Thanks,
Shane
Hi Steve,
Thank you for the login details, however i'm not seeing where you've provided me with a link to the form on the frontend.
I will need to see this in order to test the form and the code.
Thanks,
Shane
Here's the link for the form : versteckter Link
You can type on the field to display all the form field.
Hi Steve,
This should now be working. In order for the code to get the image's URL the "Use the WordPress Media Library manager for image, video, audio, or file fields" setting must be enabled on your form.
The reason is that a URL for the image will need to be generated when it is uploaded and this needs to be done before the form has been submitted.
Thanks,
Shane
Hi Shane,
Thank you for your help.
It's still not working from my side. You can find card with featured image display on this page versteckter Link
Any help?
Thank you
Hi Steve,
Not sure why its not working on your end but as soon as I entered my image in the field it works. See my post here.
versteckter Link
Can you record a short demo of you going through the process so that I can see exactly what is being done.
Thanks,
Shane
Hi Shane,
Thank you for your help.
It works now. Not sure what went wrong before.
Cheers
Hi Steve,
Happy to see that everything is ok now.
If there are no further questions you can go ahead and mark this ticket as resolved.
Thanks,
Shane
Hi Shane,
Thank you for your help.
Is there any way to make the snippet code works with default media library manager from toolset form instead of using WordPress Media Library manager?
We don't want to have all user to see all the media from another user.
Thank you,
Hi Steve,
Unfortunately no it isn't as the images need to be first uploaded before they can be picked up to be added as featured images.
If you have our Access plugin installed you can essentially moderate the media library so users will only have access to the images they upload and not see every other images in the library.
Thanks,
Shane
Hi Shane,
Thank you for your help. Access plugin is good solution.
Hi Steve,
Great if there are any issues please let me know.
Thanks,
Shane