Skip Navigation

[Resolved] allowing users to upload a "featured image" via a cred form

This support ticket is created 7 years, 2 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.

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

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by RogerD3433 7 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#567975

Our nonprofit has set up a new content type called "Update" that allows our partner groups to submit an update about their work via a CRED form. The form includes some multiline text fields and one image. I've read this thread (https://toolset.com/forums/topic/add-a-featured-image/) about adding a featured image to a custom content type, but what I can't figure out is how I can configure Types/Views/Layouts/CRED in a way that a user submitted image is stored and displayed in wordpress as a featured image. Our theme (Salient) makes use of featured images in some cool ways and it would give us more design options if we could use them either instead of or in addition to regular images. Thanks.

#568001

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Roger,

Thank you for contacting our support forum.

It could be that featured images are not enabled on your your CPT, what you can do is to go and edit your CPT and ensure that the featured image option is checked.

Thanks,
Shane

#568010
imagefieldconfiguration.jpg
featuredimageenabled.jpg

First, thanks so much Shane for all the help you're offering me! I truly appreciate it.

I went into our settings and everything seems set up correctly. You'll see from the screenshots that featured image is enabled.
and that we have an image field in our CPT. What's missing or not set up correctly is something that specifies that the image a user is uploading needs to be saved in WordPress as a featured image.

I don't know if it's helpful, but here's the code we have in our CRED form for the image upload:

<div class="form-group">
<label>Upload photo</label>
[cred_field field='updateimage' post='update' value='' urlparam='' output='bootstrap']
</div>

Is there something that can be added to that code to instruct WordPress that the image should be saved as a featured image?

Thanks again,

Roger

#568022

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Roger,

When you generate the CRED form there should be a featured image field added to the form automatically.

Would you mind providing me with admin access to the website so that I can have a look ?

Thanks,
Shane

#568071

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screen Shot 2017-09-08 at 1.39.07 PM.png

Hi Roger,

The form is missing the field for featured image thats why its not there.

Take a look at the screenshot above.

If you click the add post fields button and then click on Extra Fields, you should be able to add the featured image fields manually.

Thanks,
Shane

#568101

Thanks very much, Shane.