Short codes for embedding tweets no longer working?
-
I have a number of posts with embedded tweets using the [tweet] code. Suddenly the tweets are no longer rendering (checked from multiple devices & browsers). I was able to embed one in a post last night using just the url of the tweet, but I’m reluctant to go back through all the rest of the posts on my site and change them.
The blog I need help with is: (visible only to logged in users)
-
Hi there,
I have a number of posts with embedded tweets using the [tweet] code.
Please give us a direct link to a post where the tweet embed was previously working and is no longer doing so.
-
Here’s the two most recent:
Should render after 1st paragraph.
All models may be wrong, but it’s not a contest to see how wrong you can be
Should render after 2nd paragraph.
Thanks
-
I’m not seeing any kind of tweet code or link at all in the source code for your first post.
I’ve tagged this for Staff attention, but it would be super helpful if you would link also to the tweet on twitter that was supposed to be embedded in each case.
-
Also, I assume you were following these directions to embed the tweet with a shortcode: https://en.support.wordpress.com/twitter/twitter-embeds/#embedding-with-a-shortcode
-
Here’s the relevant code for the two:
‘Greger Wikstrand‘s tweet from earlier this week packed a wealth of inspiration into one image:
[tweet 673864944086069249 hide_thread='true']
The second statement particularly resonated with me: “The present is built on the past.”‘
That pointed to https://twitter.com/GregerWikstrand/status/673864944086069249
and
‘<img src=”https://upload.wikimedia.org/wikipedia/commons/thumb/a/aa/HO_Scale_Bachmann_44-tonner.JPG/800px-HO_Scale_Bachmann_44-tonner.JPG” alt=”HO Scale locomotive beside a pencil” title=”Getting some perspective helps” width=”100%” />
The one thing you can be sure of is that nothing is dependent on only one thing.
Michael Feathers‘ tweet last week brought this to mind:
[tweet 672147434223640578 hide_thread='true']
Too often we construct simplistic mental models that fail to account for outcomes that are possible, but inconvenient for us in some way. As Aneel noted while discussing OODA loops in his post “All Models <b>Are Wrong</b> Some Are Useful [In Some Context]”:’
That pointed to https://twitter.com/mfeathers/status/672147434223640578
And yes, I’ve been using that page as a reference.
Thanks!
-
Hi @genehughson
Actually I’m seeing tweets on both of those posts… it may have been a glitch. Are you seeing them now?
If not, are you seeing the shortcode or something else? Also, can you try a different browser and let me know whether you get different results there? Lastly, if you’re running any programs that block third party content from sites (usually intended for blocking ads), that could make embedded tweets disappear.
-
Interesting…yes, they’re showing up now. It wasn’t the browser or ad blocking, I wasn’t able to see them from two different machines using two different browsers on each, plus they weren’t visible on my phone.
-
And I can confirm that the mentioned tweets are showing up for me as well now. It must indeed have been a glitch but have to wonder if that glitch would also prevent the shortcode from appearing in the sourcecode. Regardless, glad they have returned.
-
-
Technically the shortcode itself would not appear in the “view source” code. The shortcode will be processed to render some much longer code.
Depending on how you view it, you’ll see an iframe or some other code. When I view source I see a blockquote (the non JS view) and if I inspect element, I can see an iframe which is added by the JS.
My guess is that the Twitter API was briefly unavailable, so the iframe did not load.
- The topic ‘Short codes for embedding tweets no longer working?’ is closed to new replies.