Skip Navigation

[Closed] setting Featured image in the Post form

This support ticket is created 4 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.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Author
Posts
#1736027

Tell us what you are trying to do?
Using a Post form to create a Child post from the parent post . We have a child Post form embedded in the parent post . We need to set The featured image of the parent post as featured image of the child post without uploading one more time.

Is there any documentation that you are following?
https://toolset.com/forums/topic/auto-populate-featured-image-field-in-cred-form/
Is there a similar example that we can see?
https://toolset.com/forums/topic/auto-populate-featured-image-field-in-cred-form/
What is the link to your site?

#1736495

Can you try setting the featured image field value using the wpv-post-featured-image shortcode? If the child post form is embedded in the parent post page, try this syntax:

[cred_field field='_featured_image' output='bootstrap' value='[wpv-post-featured-image output="url" id="$current_page" size="full"]']

Let me know the results and we can go from there.

#1736851

Dear sir,

I have tested this , its not working .
Tried to hard coded the value part , that also not working
[cred_field field='_featured_image' output='bootstrap' value='hidden link;

#1736869

Dear Sir,
I have done a rigorous testing on this case.
The code snippet provided by you work in this condition . This condition is a combination of two action.

1. When the form option is set to - After visitors submit this form: Keep displaying this form
2. The visitor submit this form twice from the same page
Visitor first submit the post without image is created and in the second attempt the featured field is populated .
This means this code
cred_field field='_featured_image' value can be used only when we submit the same form twice.

#1737855

Okay thank you for the additional information. This behavior is unusual. May I log in and take a closer look? I may need to make a clone of your site using the Duplicator plugin so I can run some additional tests without breaking your live site. If you approve, please provide admin login credentials in the private reply fields here and I will get started.

Also, very important - please let me know how to find the child post Form on the front-end of the site after I log in. Thank you!

#1738149

Dear Sir,

This site is a live site with lot of posts . duplicating means it will take lot of time .
What i will do i will use toolset demo site to clone the situation and share the details with you .
thank you for the hep sir.

#1742161

Okay, thank you! I have activated private reply fields here so you can share login credentials for the test site.

The topic ‘[Closed] setting Featured image in the Post form’ is closed to new replies.