Types plugin provides a fields API, making it easy to display custom fields on your website’s front-end. The corresponding function call outputs the desired fields with a special formatting and supports different attributes for each field type.
Viewing 15 topics - 121 through 135 (of 146 total)
Problem:
The customer reported that the custom code linked to the 'cred_save_data' hook is not working correctly to get the custom field values from the related parent post and set them in the newly created post's title.
Also, the shortcode to include the custom field values from the related parent post in the form's email notification is also not working.
Solution:
After troubleshooting, suggested some changes in the custom function and the shortcodes for the related parent's custom field values.
Problem:
The customer asked what is the correct format to load the content template shortcode, that gets the item attribute values from a repeating custom field.
Solution:
Guided that for the repeating field, it is best to wrap each instance of the content template shortcode inside the 'wpv-for-each' shortcode.
The customer asked how to add a dynamic Twitter feed linked to the custom field and a contact form to the content template
Solution:
For the Twitter feed, shared information of how Twitter's embed code works and how Toolset's Types field shortcode can be included in it to make it dynamic.
And for the contact form suggested adding a new CPT "Contact Requests" and then collecting new submissions using the Toolset post form.
The customer wanted to know if there is a way to set the image from a Toolset term field, as a background in a Beaver Builder template for the taxonomy archive.
Solution:
Guided that this is possible and when you click the dynamic source option icon in the row's background settings, the dropdown includes the "Archive Term Meta" option.
Once, you select this option it asks for the field key and if you include the term field's key with the "wpcf-" prefix, it correctly gets the background image from the related term field.