Thread Starter
Adam
(@ahardy42)
Just discovered I could do something manually with HTML but that would take way too long.
Twitter displays external links by grabbing the linked page’s title, excerpt and banner image which are specified by header tags in the linked page’s HTML header.
So a tweet consists of:
– a user name
– a user avatar image URL
– user comment
– link with image URL, title & excerpt
This takes quite an effort to compose manually. Automating a block to accept the tweet URL from Twitter, fetching the parts above and composing the HTML would be turn the operation into a 1 minute job.
Thread Starter
Adam
(@ahardy42)
I have duplicated this message on the Newsletter Plugin website forum.
Blocks can be dynamically and easily added to the composer with a little effort. A block is a small set of files: an icon, a block renderer and block options.
See https://www.thenewsletterplugin.com/documentation/developers/dev-composer-blocks/
Thread Starter
Adam
(@ahardy42)
Hi @webagile I talked to a couple of different WordPress developers about creating such a block for incorporating tweets into the newsletters and they were not very positive about the idea – in fact no-one offered to do it even.
One issue is that you TNP developers might decide to implement Gutenberg blocks in your Newsletter content instead of custom TNP stuff. If you have plans to do that, it doesn’t make sense for me to invest in developing a custom Twitter block.