[Resolved] Adding Twitter feed and contact form to content template
This thread is resolved. Here is a description of the problem and solution.
Problem:
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.
Tell us what you are trying to do? We would like to display a Twitter feed (based on the listing's entered Twitter account) and a contact form (linking to the listing's email address) within a content template.
Is there any documentation that you are following? I have checked your support documentation but can't see any reference to this - sorry if I have missed anything!
Is there a similar example that we can see? The form and feed would be in the right side-bar of a listing like this, appearing under the map. hidden link?
Note: In this example code the Twitter account used for the timeline is "androidcentral".
You can make this code dynamic by linking the Twitter account part to a custom field value, so that a different timeline can be shown for each listing.
1. You'll add a new "Twitter Account" single-line type custom field with listing post type (slug "twitter-account"), in which the Twitter account value ( e.g. androidcentral ) can be saved.
2. Next, in your content template for listings, you can include a "Custom HTML" block to add this embed code, with the Toolset Types field shortcode, like this: