Issue: Embedding Tweets not Working [With Solutions]


When i was writing post about “embedding twitter tweets inside post or website”, I was facing the same problem. I tried each and every method but i was unable to solve issue. I came across a variety of solutions and at last solved my problem.

So, it would be injustice with my users, that i don’t share the solutions of issues that really occur in the embedding tweets.

Check out this also:
— Embedding tweets in a Post or Website [Simplest How to]

Method 1:

There may be the problem of “https” when inserting the tweet link inside the post, try “http” instead.

Method 2:

If you are using the Prior version of WordPress 3.5, then you have to enable the auto-embed option from the Settings>>Media>>Auto Embeds.

Method 3:

Try to give the twitter tweet link in the [ embed ] link here [ /embed ]. Remove the spaces between the bracket and the embed keywords, as we have given to restrict it from execution.

Method 4:

  1. This method worked for me. Paste the below code in the “function.php” file.
function twitter_oembed($a) {
    $a['#http(s)?://(www\.)?*#i'] = array( '{format}', true);
    return $a;
  1. Now embed the twitter tweet in between embed as mentioned above.


Don’t Forget to share it with your friends. Simply click the below buttons.


I am Muhammad Naveed Baig Jokhio, the CEO and Founder of Crispylogs, I am doing Graduation from MUET in Computer Systems Engineering. I am a professional Article Writer, Web enthusiast, WordPress lover, a passionate Graphics Designer, Technology geek, Programmer and a Researcher.