Skip Navigation

[Resolved] WordPress Fields and Toolset CRED Fields – Link – Excerpt, featured image …

This support ticket is created 5 years, 1 month 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)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by sergeP 5 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#1387941

Hello,

On some part of my site, I would like to be able to use the Elementor's widgets for my CPT using Toolset instead of creating a Toolset View.

But if users upload a image or content, it is not considered as the usual wordpress "Featured image", "post content" Wysiwig or Excerpt.

Is there a way, in CRED Form to allow users to upload directly :
1./ Featured Image
2./ Post Content
3./ Excerpt

Thank you in advance for your support,
Looking forward hearing from you soon,
Best regards,

#1388127

Shane
Supporter

Languages: English (English )

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

Screenshot 2019-11-20 at 10.52.29 AM.png

Hi Serge,

Thank you for getting in touch.

When you generate a post form it should normally auto generate these fields . See Screenshot

<div class="form-group">
		<label>Post Title</label>
		[cred_field field='post_title' value='' urlparam='' class='form-control' output='bootstrap']
	</div>

	<div class="form-group">
		<label>Post Content</label>
		[cred_field field='post_content' value='' urlparam='' output='bootstrap']
	</div>

	<div class="form-group">
		<label>Post Excerpt</label>
		[cred_field field='post_excerpt' value='' urlparam='' class='form-control' output='bootstrap']
	</div>

If they don't auto generate then you can just add these fields to your form.

Please let me know if this helps.
Thanks,
Shane

#1388575

Hi Shane,

Thank you for your quick answer.
Usually, appart of the title, the field="..." attribute was the name of the field :

[cred_field field='description-longue-groupe-artiste-suivre' force_type='field' class='form-control' output='bootstrap']

So If I modify the code above with field="post_content", The content will be considered as a content for wordpress standard and will be taken into consideration by most of Elementor widgets right ? Same for field='post_excerpt' ?

[cred_field field='post_content' force_type='field' class='form-control' output='bootstrap']

Could you please share the similar field="..." code for Post Featured Image ?

Thank you in advance Shane,
Best

#1388825

Shane
Supporter

Languages: English (English )

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

Hi Serge,

As mentioned these fields will get auto generated when you create your form.

However you can just use this below.

	<div class="form-group">
		<label>Featured Image</label>
		[cred_field field='_featured_image' value='' urlparam='' output='bootstrap']
	</div>

Thanks,
Shane

#1389245

I can assure you that they don't.
The pictures uploaded through the CRED form are not featured as featured image, excerpt and content.
Maybe I did something wrong but they don't.

Thank you Shane