How to Display Your Twitter Status on Your WordPress Site

Let’s take a look at some of the ways you can display your latest tweets on your site without using plugins.

Using cURL

Replace ‘wpmayor’ with your Twitter username in the get_status() function call. You can put the function in your functions.php file, and call the function wherever you like within your theme.

Source: CatsWhoCode

Using RSS and Caching

This code uses caching, and lets you select the number of tweets returned. Just replace your username in the function call, and enter the number of tweets you want retrieved as the second parameter.

Source: WPBeginner

Alternative Method via RSS, no Caching

Another method you can use, this one involves the least amount of code you need to paste, and is very straightforward to use. In the second script call below replace your username instead of ‘wpmayor’.

Into your theme just above the closing </body> tag:

Into your theme where you want the tweets displayed:

Source: WPBeginner

If you enjoyed this post, make sure to subscribe to WPMayor’s RSS feed.

About Jean Galea

Jean Galea is a WordPress developer, entrepreneur and padel player. He is the founder of WP Mayor, the plugins WP RSS Aggregator and EDD Bookings, as well as the podcast. His personal blog can be found at

Related Articles

6 Responses

  1. saqib
    saqib March 13, 2012 at 07:35 | | Reply

    Thanks Jean. I used the third method very often but It is good to know the other methods by your post.

    What you think which one is the best ?

  2. Jay
    Jay October 22, 2012 at 20:43 | | Reply

    I used to have the third option working, but now for some unknown reason it doesn’t work.

    If anybody can see why I would welcome their feedback and can be contacted via my site.


    1. saqib
      saqib October 23, 2012 at 09:05 | | Reply


      it is not working due to changes in Twitter API

      here is the alternative closes code

      getTwitters(‘twitter_update_list’, {
      id: ‘wpmayor’,
      count: 3,
      enableLinks: true,
      ignoreReplies: true,
      clearContents: true,
      template: ‘%text%’

    2. saqib
      saqib October 23, 2012 at 09:08 | | Reply


      the comment are not displaying the code correctly.

      So, here is screenshot for help :


      1. Jay
        Jay October 23, 2012 at 09:24 | | Reply

        Hi Saqib,

        Thanks very much for that, i will implement that later when i get home! Thats very kind of you, I appreciate your help!

Leave a Reply