Twitter Oembed Tweets not displaying: Maximum number per post? (2 posts)

  1. notpoppy
    Posted 3 years ago #

    I have used WordPress's built-in support for embedding Tweets via Oembed successfully many times before for small numbers of Tweets.

    However I am writing a new post which includes a larger number of Tweets (37 at present) and it intermittently fails to render them in the Twitter format, displaying the plain URL instead.

    I wonder if I'm hitting some sort of upper limit on the number of requests that can be made? Is there a maximum number of Tweets you can include via Oembed in each post? Or am I hitting some other kind of limit on requests by repeatedly saving and checking drafts of this post?

    I couldn't find any information about this on Twitter or the WordPress codex:


    I had a rummage through the forum and found a description of a similar problem here, but the suggested fix (copy text into plain text file, paste and publish) did not work for me:


  2. notpoppy
    Posted 3 years ago #

    There's some information here from Twitter which appears to be related:


    Cache the oEmbed response on your server. The oEmbed endpoint is rate-limited, so make sure you are not fetching it for every pageview you render.

    Is this what's causing my problem? If so how do I "cache the oEmbed response"?

Topic Closed

This topic has been closed to new replies.

About this Topic