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?
What is the link to your site? hidden link?
Hi,
The embed code for the Twitter feed/timeline from Twitter's website ( hidden link ) looks like this:
<a class="twitter-timeline" data-height="600" data-theme="light" href="<em><u>hidden link</u></em>">Tweets by androidcentral</a>
<script async src="<em><u>hidden link</u></em>" charset="utf-8"></script>
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:
<a class="twitter-timeline" data-height="600" data-theme="light" href="<em><u>hidden link</u></em> field='twitter-account'][/types]?ref_src=twsrc%5Etfw">Tweets by [types field='twitter-account'][/types]</a>
<script async src="<em><u>hidden link</u></em>" charset="utf-8"></script>
As for the contact form, you can register a new custom post type "Contact Requests" to collect contact form submissions and then create a new form to add posts to this post type, using Toolset Forms. Here is a guide on using the Toolset Forms:
https://toolset.com/course-chapter/forms-for-front-end-submission-and-editing-of-directory-items/
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar
My issue is resolved now. Thank you!