The customer tried to render embedded media for Facebook and Twitter posts using Toolset's Embedded Media custom post type, but the links were not displaying as intended. Only a simple link appeared, instead of the expected embedded content.
Solution:
We found that recent policy changes by Facebook and Twitter affect automatic embedding capabilities in WordPress. Toolset utilizes WordPress's built-in embedding function, which can no longer directly handle Facebook and Twitter embeds due to these updates. To embed content from these platforms, users need to retrieve the embed code manually:
• Twitter: Use Twitter’s Publish tool for the embed code. The embed code can be placed in a WYSIWYG custom field in Toolset for proper display: https://publish.twitter.com/
The customer duplicated a site, and on the new version (SilverCoast), property images were missing. The image src attributes pointed to placeholders (data:image/gif;base64...) instead of actual image URLs. The backend displayed images correctly, but they did not show up on the frontend.
Solution:
We identified that the issue was related to custom code responsible for fetching media IDs using full media URLs. The original code checked the database for the full URL, including the domain, which failed after site duplication. We modified the code to extract the filename and match it in the database, ignoring the domain format. This allowed the media ID retrieval to work correctly across sites.