WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
    • Business Name Ideas
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Tutorials» Beginners Guide on How to Add Twitter Cards in WordPress

Beginners Guide on How to Add Twitter Cards in WordPress

Last updated on April 2nd, 2021 by Editorial Staff
530 Shares
Share
Tweet
Share
Pin
Free WordPress Video Tutorials on YouTube by WPBeginner
Beginners Guide on How to Add Twitter Cards in WordPress

Do you want to add Twitter Cards to your WordPress site? Twitter Cards are images and descriptions that appear on Twitter when someone shares your content.

It helps you control how your Tweets will look on Twitter, get credit by automatically including your name in the Tweet, and boost user engagement.

In this article, we will show you how to add Twitter Cards in WordPress, so your Tweets can stand out.

Beginners Guide on How to Add Twitter Cards in WordPress

Why Use Twitter Cards in WordPress?

Twitter Cards allow you to add a title, summary, image, and a video or audio file to your Tweet. This way, you are more likely to get more clicks and retweets.

You can see a live example by going to our Twitter page.

twitter card example

The biggest advantage of having Twitter Cards is that it increases the number of people following your Twitter accounts through content attribution. Often people Tweet your links without giving you proper credit.

For example, @syedbalkhi retweets a post from @wpbeginner without attribution, and other people retweet @syedbalkhi. Then users viewing those retweets are more likely to follow @syedbalkhi than @wpbeginner.

Often content curators do this to keep the Tweet lengths short and ensure retweets of their own Tweets.

With Twitter Cards, this problem is solved because you get credit to your site from every Tweet that mentions your article.

Now that you know the benefits of Twitter Cards, let’s take a look at how to implement them in WordPress.

Method 1: Use AIOSEO Plugin to Add Twitter Cards

The easiest way of adding Twitter Cards to your website is by using the All in One SEO (AIOSEO) plugin for WordPress. It is the best WordPress SEO plugin and is used by over 2 million websites.

First, you will need to install and activate the AIOSEO plugin. For more details, follow our step-by-step tutorial on how to install a WordPress plugin.

You can use the free version of AIOSEO as it offers a feature to set up Twitter Cards on your WordPress website.

After the plugin is active, go to your WordPress admin area and navigate to All in One SEO » Social Networks. Then click on the ‘Twitter’ tab and make sure that the ‘Enable Twitter Card’ option is enabled.

enable twitter card option

Once you enable Twitter Cards, you can change their appearance using different settings.

AIOSEO lets you select the Default Card Type for your content. The plugin will set ‘Summary’ as the default card type which shows the title, summary, and thumbnail image for your content.

However, you can change it to ‘Summary with Large Image’ from the drop-down menu and Twitter will show your tweet with a large image.

default card type

After that, you need to select the Default Post Image Source. It is the image you want to display in your Twitter Cards.

There are different options to choose from using the drop-down menu. For instance, you can upload or select a default image that will appear in the Twitter Card or select the featured image, attached image, first image in content, etc.

select default post image source

Next, add a Default Post Twitter Image, which will be used as a backup in case your content doesn’t have an image.

For instance, if your post image source is a featured image but the post is missing a featured image, then Twitter will use the default image instead.

upload default post twitter image

Aside from that, AIOSEO offers more options to show additional data like post author and the time it would take to read an article.

There is also an option to set the Default Term Image Source, but you will need AIOSEO Pro or a higher license to use this feature.

Now, if you scroll down, you will see home page settings for Twitter. The plugin will show a preview of how your home page will look in a Twitter Card.

home page settings

Under this section, you can change the Card Type and add a Home Page Image. It is similar to the steps we showed earlier, but the only difference is that these settings are for your home page.

home page card type and image

Next, enter a Home Page Title and Description that will appear on the Twitter Card.

home page title and description

Once that is done, click the ‘Save Changes’ button.

Aside from that, AIOSEO also lets you change the Twitter Card settings for individual posts and pages.

To do that, edit any blog post or page and then scroll down to the AIOSEO Settings in the content editor. Now click on the ‘Social’ tab and select ‘Twitter’.

aioseo settings

The plugin will show a preview of your post’s Twitter Card and give you an option to use data from the Facebook tab. It also lets you edit the Twitter title and description.

You can write a new title and description or use smart tags. For instance, if you use the ‘+ Post Title’ tag under Twitter Title, AIOSEO will automatically use your post’s title in the Twitter Card.

twitter card settings for posts and pages

After that, scroll down and select the Image Source for your Twitter Card. Use the drop-down menu to select the image you want to display for your post, like a featured image, attached image, first image in content, and so on.

Lastly, you can select the Twitter Card Type from the drop-down menu. By default, AIOSEO will set it to ‘Summary’ but you can change it to ‘Summary with Large Image.’

image source and card type

Next, update or publish your blog post. You have now successfully added Twitter Cards to your WordPress website.

Method 2: Add Twitter Cards in WordPress (Code Method)

This method requires adding code to your theme or child theme files. Simply open the header.php file and add this code just before the </head> tag.

<?php
#twitter cards hack
if(is_single() || is_page()) {
  $twitter_url    = get_permalink();
 $twitter_title  = get_the_title();
 $twitter_desc   = get_the_excerpt();
   $twitter_thumbs = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), full );
    $twitter_thumb  = $twitter_thumbs[0];
      if(!$twitter_thumb) {
      $twitter_thumb = 'http://www.gravatar.com/avatar/8eb9ee80d39f13cbbad56da88ef3a6ee?rating=PG&size=75';
    }
  $twitter_name   = str_replace('@', '', get_the_author_meta('twitter'));
?>
<meta name="twitter:card" value="summary" />
<meta name="twitter:url" value="<?php echo $twitter_url; ?>" />
<meta name="twitter:title" value="<?php echo $twitter_title; ?>" />
<meta name="twitter:description" value="<?php echo $twitter_desc; ?>" />
<meta name="twitter:image" value="<?php echo $twitter_thumb; ?>" />
<meta name="twitter:site" value="@libdemvoice" />
<?
  if($twitter_name) {
?>
<meta name="twitter:creator" value="@<?php echo $twitter_name; ?>" />
<?
  }
}
?>

Source: Ryan Cullen @artesea

If you don’t know how to work with PHP or running into issues with Method 2, then please use Method 1.

Test and Validate Your Twitter Cards

Before links from your WordPress site start showing Twitter Cards, you need to first check it in the Twitter card validator.

Simply head over to the Card Validator page on Twitter developers website. Enter URL of any post from your WordPress site and click on preview card button.

twitter card validator

Twitter will show you a preview of your Twitter card.

Update: Previously you had to apply for participation in the Twitter Cards. However, Twitter has implemented a system that automatically whitelists domains when you test them with the validator or just share a URL on Twitter.

We hope this article helped you add Twitter cards in WordPress. You may also want to see our list of the best Twitter plugins for WordPress, and our expert pick of the must have WordPress plugins to grow your website.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

530 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • Google Analytics in WordPress

    How to Install Google Analytics in WordPress for Beginners

  • Revealed: Why Building an Email List is so Important Today (6 Reasons)

    Revealed: Why Building an Email List is so Important Today (6 Reasons)

  • How to Fix the Error Establishing a Database Connection in WordPress

    How to Fix the Error Establishing a Database Connection in WordPress

  • How to Properly Move Your Blog from WordPress.com to WordPress.org

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

85 Comments

Leave a Reply
  1. Dee says:
    Aug 24, 2020 at 12:48 pm

    Hi! I have a free wordpress.com blog, and I’m not sure how to add twitter cards to that. I don’t know if I can edit the html of my theme without a plugin (if I can, I don’t know how to find the html code) (super new to WP) is there any way to add twitter cards for free

    Reply
    • WPBeginner Support says:
      Aug 25, 2020 at 10:58 am

      You would need to reach out to WordPress.com for what they currently have available.

      Reply
  2. MStokely says:
    Aug 20, 2020 at 1:11 am

    Thank you! It took awhile for this to work I guess because cache needed to be cleared but this is the ONLY solution I found that worked.

    Reply
    • WPBeginner Support says:
      Aug 20, 2020 at 10:23 am

      Glad our guide was able to help :)

      Reply
  3. Pierre says:
    May 2, 2019 at 10:11 pm

    Question about this, when I am posting a link from my site on Twitter, the preview image is only showing the WordPress W logo instead of what I set in Yoast. Is it just a matter of waiting it out or a, I doing something wrong?

    Reply
    • WPBeginner Support says:
      May 3, 2019 at 10:46 am

      You may want to ensure you’ve cleared any caching on your site for twitter to get the correct image and after that, you would need to wait for Twitter’s cache to clear.

      Reply
  4. neo says:
    Mar 12, 2019 at 11:58 am

    thanks for the guide, adding Twiter Cards through Yoast was the easies way for me :)

    Reply
    • WPBeginner Support says:
      Mar 13, 2019 at 10:06 am

      Glad our article could help :)

      Reply
  5. MIke says:
    Aug 1, 2018 at 10:41 am

    Hey there, very late to this article but am wondering how to amend the php code to produce the large image with summary card.

    I’ve given it a shot but not managed it yet. Ideas and advice appreciated.

    cheers

    Reply
  6. Mark Larson says:
    Jan 30, 2018 at 2:28 pm

    I’m getting this error:

    “Notice: Use of undefined constant full – assumed ‘full’ in”

    Not sure how to get rid of it.

    Reply
  7. Ted Bergman says:
    Nov 28, 2017 at 10:23 am

    Thanks for this post. When I need to know how to do something on WordPress I come here first. Your easy to understand instructions are priceless!

    Reply
  8. Sarah Bridge says:
    Oct 27, 2017 at 4:35 pm

    I’ve done all the steps using Yoast and validated my url – but there is still no image coming up when I post my URL on Twitter? It said this:

    Sarah Bridge
    The card for your website will look a little something like this!

    and underneath on the right hand side it has the correct words but on the left hand side where an image should be there’s nothing but a grey box with what looks like a grey scroll in it. You can click on it to get to my website but I’d like a image there rather than a grey box. Any thoughts?

    Reply
  9. Daniela says:
    Sep 20, 2017 at 2:59 pm

    Have successfully done this in the past. However, it was always when using summary card with large image (which is set as the default in my Yoast settings). Now trying to post summary card (regular, not large image), but Yoast is overriding it to summary card large image. How do I prevent this?

    As a note, I’m doing both methods: adding info to Yoast plug in and writing metadata tags in a plug in.

    Reply
  10. Chinny says:
    Aug 17, 2017 at 5:00 am

    This was very helpful! Thanks. Did it and the twitter cards automatically came up even for previous tweets.

    Reply
  11. Haris says:
    Jun 21, 2017 at 4:13 pm

    ERROR: Required meta tag missing (twitter:text:description)

    Getting this error :(

    Reply
  12. Nick Farrell says:
    May 30, 2017 at 10:56 am

    You can also just throw your meta tags right into the body of your post. Not the ideal way, since this creates empty white space where your tags are, but it’s a good workaround for those having trouble.

    Reply
  13. Laurel says:
    Jan 12, 2017 at 2:46 pm

    If the php code above seems to break your site, it could be that your server doesn’t use php short tags (using “<?" as an opening tag instead of "<?php"). Try this version instead:

    Reply
  14. Prabs says:
    Jan 7, 2017 at 7:47 pm

    Hi thanks for the informative post. However I did all this and when testing my site through the card validator, was told it was unable to generate image because my site isn’t whitelisted! Any idea what I can do?

    Reply
  15. Sarah says:
    Jan 2, 2017 at 11:37 am

    Hi,

    I realise this is an old post,

    IF you HARDCODE into your header.php; make sure you change the values line 10 and 19 as these point to the contributors account so be sure to change them to yours.

    just sayin … ;-)

    Reply
  16. Jahmya says:
    Dec 8, 2016 at 9:56 am

    Hi,
    I have done all the steps when I try to validate with twitter it tells me my text description meta tag is missing. I don’t know anything about code so I used the first method. Any help?

    Reply
  17. sonam says:
    Nov 24, 2016 at 11:45 pm

    is it free ?

    Reply
  18. Tyler says:
    Oct 24, 2016 at 1:33 pm

    Finally a helpful tutorial! You would think that Twitter would make it a little simpler to do this. Thank you so much for your help on this!

    Reply
  19. Michael says:
    Aug 18, 2016 at 8:01 pm

    Is there a way to automatically notify the twitter validator when a post/page is updated?

    I have a site that gets content published automatically from a source without a featured image so once I manually add the image I also have to manually validate the post/page again to get the cards to show on twitter.

    Was hoping there could be some way to automatically ping the twitter validator when a page/post is updated.

    Reply
  20. Azita says:
    Jun 10, 2016 at 1:23 pm

    I don’t know why the code above cut off.
    Here is the code am using:
    ID), full );
    $twitter_thumb = $twitter_thumbs[0];
    if(!$twitter_thumb) {
    $twitter_thumb = ‘url of imag’;
    }
    $twitter_name = str_replace(‘@’, ”, get_the_author_meta(‘twitter’));
    ?>
    <meta name="twitter:title" content="” />
    <meta name="twitter:description" contente="” />
    <meta name="twitter:image" content="” />

    Reply
    • Azita says:
      Jun 10, 2016 at 2:43 pm

      Thank you so much. I figured out. No worries. Please disregard this comment.
      Thank yu again.

      Reply
  21. Adrian Robertson says:
    Jun 7, 2016 at 10:51 pm

    Another awesome post … great stuff!

    For anyone having issues with the image being display (I have Summary selected as my Twitter Card option) just make sure you are using a featured image, as this is where it pulls from.

    Without this specified, what I saw was my site logo (which was way too big for the Summary image)

    Reply
  22. Nefeli D says:
    May 30, 2016 at 2:00 pm

    Can’t thank you enough ! :)

    Reply
  23. Cheo says:
    May 14, 2016 at 12:35 am

    Hi, i’ve made all steps and got the twitter card ok, but the preview image is not loading! what should i do?

    Reply
    • WPBeginner Support says:
      May 14, 2016 at 1:14 am

      If you are using code method, then please try using the plugin method. If you are already using the plugin method, then try repeating all the steps carefully.

      Reply
  24. shamsher says:
    May 5, 2016 at 7:41 am

    i have a question that when where to upload it on all pages and post or on home page only.

    bcoz when i share any link of my blog on twitter after adding this in header every time same image appears.

    Reply
    • Adrian Robertson says:
      Jun 7, 2016 at 10:52 pm

      Is it your site logo that appears?
      Just check that you have a feature image set against your post, and it should pull from there

      Reply
  25. Roger Dunkelbarger says:
    Mar 28, 2016 at 4:19 pm

    Found this article and followed the steps to set up Twitter Cards since we already had Yoast. We want to use the video Player Card but that doesn’t appear to be an option. Do we need to use a different plug in, or is that option available?

    Reply
  26. Amanda says:
    Jan 20, 2016 at 1:37 pm

    I”m using twitter cards through my Yoast SEO, however when I post I have a link and a view summary button that people have to click to see my pictures. I want the pictures to be auto populated without the need for a click. How do I make that happen?

    Here is my twitter account so you can see my tweets for an example

    Reply
  27. Graham says:
    Dec 1, 2015 at 3:11 pm

    All going well with the inclusion of twitter cards. I would like to make the image that displays on twitter link able or to a link underneath to take it to a third part site any ideas?
    Oh and by the way I would like to thank you guys for realizing that not everyone degree is in computer science and won at MIT !!

    Reply
    • WPBeginner Support says:
      Dec 1, 2015 at 11:30 pm

      The image can only be linked to the link you are sharing.

      Reply
  28. Tina Marie Ernspiker says:
    Dec 1, 2015 at 12:10 am

    Thank you very much! My blog is white-listed now, with Twitter Cards :-) Whoot, whoot!

    Reply
  29. Jas says:
    Nov 12, 2015 at 7:42 am

    Hi,

    Thanks for your tutorial. I have tried with above code. But can you please explain how to make Twitter card working for multiple accounts.

    I have ten different twitter pages where same post will go out as Twitter card.

    So do I need to repeat this below line 10 times with different names:

    …..

    …

    ….
    ….

    Please suggest?

    Thanks!

    Reply
    • jas says:
      Nov 12, 2015 at 7:45 am

      code doesn’t shows in my previous comment I mean to say meta tag with Twitter site name need to get repeated with different names?

      <meta name="twitter:creator" value="@” />

      Reply
  30. Edna says:
    Oct 15, 2015 at 4:23 am

    This was super helpful, thanks!

    One quick thing, I noticed the validation link is no longer working. I think this is the Card Validator link now (got it from the twitter blog, seemed to work fine for me):

    Reply
    • WPBeginner Support says:
      Oct 23, 2015 at 1:54 pm

      Thanks, we have updated the article.

      Reply
  31. Maha says:
    Sep 29, 2015 at 3:52 am

    How to request to twitter for approvel my site ..please help me i tried twitter card ,the preview tool say your card is whitelisted ..

    Reply
  32. riad says:
    Aug 11, 2015 at 5:24 am

    hi i love your site very nice i want to asking you how to change the language of wordpress from franch to english or arabic

    Reply
    • WPBeginner Support says:
      Aug 11, 2015 at 4:35 pm

      You can change the language from Settings > General page in WordPress admin area.

      Reply
  33. Paul Middlebrooks says:
    Dec 12, 2014 at 2:57 pm

    The Yoast solution did not work for me. I followed the instructions (3 times to make sure), and the Card Validator sees my metadata but tells me I have no card.
    Also, neither the Preview Tool nor the “FIll out This Form” links worked:
    https://dev.twitter.com/docs/cards/preview

    Maybe this solution is already history?

    Reply
  34. samiOOTB says:
    Dec 2, 2014 at 9:34 am

    I had done this and Twitter cards were working perfectly for months. Suddenly the past few days they’ve stopped working. What can I do?

    Reply
  35. Megan Kubasch says:
    Sep 16, 2014 at 11:41 am

    So I have installed WP SEO by Yoast, and I have followed all of the instructions up to the point where I insert the Card URL on the Preview page for the Card Validator on Twitter. What URL am I supposed to Insert? I have used my URL for my blog, but it comes up with an error, saying No Card Found (Card Error). Any help you can provide would be greatly appreciated.

    Reply
    • Paula says:
      Feb 1, 2015 at 6:12 pm

      It will not do it for a main blog page. You have to enter a post page url. So something like http://www.blogname.com/title-of-blog-post not http://www.blogname.com Hope that helps! :D

      Reply
  36. Eric Yoffie says:
    Sep 1, 2014 at 1:13 pm

    My twitter card has been approved, but I don’t know how to make it work. Am I supposed to fill out a form? I am a WordPress user.

    Reply
  37. Lauren Riley says:
    Jul 4, 2014 at 7:19 am

    This is really useful thank you.

    One thing, we have enabled this using the WordPress Yoast SEO Plug-in and set up a Twitter card manually entering all of the information on the card validator for one blog post.

    This worked, however when I tweet a link to my other blog posts it doesn’t pull through the Twitter card. Do you have to set up the Twitter cards for each blog post or should it do it automatically for each blog post?

    Reply
  38. Manuel Echeverry says:
    Jun 5, 2014 at 6:11 pm

    graciass!!! thank you! finally I managed to submit my request to twitter, hopefully i will get my card approved

    Reply
  39. Ruth says:
    May 15, 2014 at 8:29 am

    Oh, and ps
    Do we have to approve each post, or will that be automatic after our first post was approved… Again, thank you

    Reply
  40. Ruth says:
    May 15, 2014 at 8:28 am

    Thanks, it works great, except for one thing: I can’t get an image to be included. How would I do that,

    Reply
  41. Karan Singh says:
    Mar 24, 2014 at 8:47 pm

    when i install this plugin then it is asking for “You’ve just installed WordPress SEO by Yoast. Please helps us improve it by allowing us to gather anonymous usage stats so we know which configurations, plugins and themes to test with” Allow Tracking or not, what should i do,
    Allow tracking or not.

    Reply
  42. Sri Ganesh.M says:
    Jan 30, 2014 at 2:54 am

    The codings are not working for animhut blog. Showing error ! Invalid card type

    Reply
  43. Kevin says:
    Jan 5, 2014 at 8:40 am

    Hello there. Great guide, thanks!

    I’m currently stuck trying to validate twitter:creator. When I look at the source for one of my posts, I don’t see the twitter:creator meta tag at all. Would you mind, pointing me in the right direction? I’m hard-coding it.

    Reply
  44. Gareth says:
    Dec 13, 2013 at 5:27 am

    Great post – i was struggling to set up twitter cards using a wordpress plug in without realising that Yoast had it in-built!

    All set up and awaiting approval – thanks guys

    Reply
  45. Jason Acidre says:
    Oct 1, 2013 at 5:24 am

    Useful post! Been planning to add Twitter cards on my blog for ages now, and just had the time to tweak it earlier, found this guide very helpful, so thanks.

    Reply
  46. Reap3RGHS says:
    Jan 28, 2013 at 5:15 pm

    Hello,
    I having a simple problem. I going to add my twitter username to my profile settings. I just add Reap3R_GHS and turn it into http://reap3r_ghs. What can I do?

    Reply
    • Editorial Staff says:
      Jan 29, 2013 at 8:18 am

      That’s weird. Did you post it in the support forum for Yoast to see?

      Reply
      • Reap3RGHS says:
        Jan 29, 2013 at 3:53 pm

        Isn’t in Yoast settings but in profile settings…

        Reply
  47. Julien Maury says:
    Dec 1, 2012 at 4:07 pm

    Hi,

    It’s great but because we call the excerpt outside the loop (header), people could get bad surprises for their description.

    So here is a good snippet from uplifted.net that fixes the problem :

    function get_excerpt_by_id($post_id){
    $the_post = get_post($post_id); //Gets post ID
    $the_excerpt = $the_post->post_content; //Gets post_content to be used as a basis for the excerpt
    $excerpt_length = 35; //Sets excerpt length by word count
    $the_excerpt = strip_tags(strip_shortcodes($the_excerpt)); //Strips tags and images
    $words = explode(‘ ‘, $the_excerpt, $excerpt_length + 1);
    if(count($words) > $excerpt_length) :
    array_pop($words);
    array_push($words, ‘…’);
    $the_excerpt = implode(‘ ‘, $words);
    endif;
    $the_excerpt = ” . $the_excerpt . ”;
    return $the_excerpt;
    }

    Then you might replace get_the_excerpt() with this :
    get_excerpt_by_id($post_id)

    Thanks. :)

    Reply
    • Julien Maury says:
      Dec 4, 2012 at 4:58 pm

      Sorry that wasn’t exactly that :

      Call the function this way : get_excerpt_by_id($post->ID) otherwise you’ll get notice !
      $post_id is undefined.

      Plus get_the_excerpt() is deprecated.

      You can also add an esc_attr() on $the_excerpt to avoid broken meta if the excerpt has quotes

      Thanks !

      Reply
      • Julien Maury says:
        Dec 25, 2012 at 10:03 am

        Finally made a plugin to solve this issue : http://wordpress.org/extend/plugins/jm-twitter-cards/

        Reply
    • Main Uddin says:
      Jan 10, 2013 at 6:52 am

      There is no needs to use any code , simply use WordPress SEO by Yoast as Syed Balkhi has said which is the best for Twitter card

      Reply
      • Julien Maury says:
        Jan 10, 2013 at 11:28 am

        Hi,
        There’s no need to use any code. But still my plugin allows you to choose which type of card you want to use on each post. Moreover you can change meta creator (guest blogging) per each post too. I think it’s worthy :)

        Reply
        • Roy McKenzie says:
          Jan 28, 2013 at 7:21 pm

          Totally Worthy!

  48. Manuel Garcia says:
    Oct 29, 2012 at 10:09 pm

    When I preview my twitter card, the error says:
    “Internal Error. Most likely an fetcher error.”
    What to do?

    Reply
  49. Sai Liou says:
    Oct 19, 2012 at 5:08 pm

    Thank you for the article! I went with method #1. In the twitter preview, I’m only seeing the summary of the post and not the image. I’ve updated the robot.txt file to allow twitterbot. However, it’s still not showing any image in the preview. Any thoughts on this? Thank you in advance.

    Reply
    • Editorial Staff says:
      Oct 19, 2012 at 5:26 pm

      Look in your view:source to see if you have the image tags. The image is usually pulled from your featured image.

      Reply
  50. Mattia Frigeri says:
    Oct 19, 2012 at 8:11 am

    Good article. I activated the summary card…

    Anyway: how do you change the anchor text name of the website in the attribution below?
    For instance yours is “WordPress Beginner”, other sites use “example.com”. In my case it uses my name. How do you manage it? I’d like to show a piede of my URL like “example.com”

    Reply
« 1 2

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
WPForms Logo
WPForms
Drag & Drop WordPress Form Builder Plugin. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 30 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2021 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2021)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2021)
    • SiteGround Reviews from 4464 Users & Our Experts (2021)
    • Bluehost Review from Real Users + Performance Stats (2021)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • Free Business Name Generator (A.I Powered)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2021 – Step by Step Guide
Deals & Coupons (view all)
SiteGround
SiteGround Coupon
Get up to 63% off off SiteGround's WordPress hosting. Don't miss out!
DreamPress
DreamPress Coupon
Get up to 16% OFF on DreamPress's powerful WordPress Hosting.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).

Join our team: We are Hiring!

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
  • Free Business Tools
  • Growth Fund
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress
  • Smash Balloon
  • AIOSEO

Copyright © 2009 - 2021 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress Security by Sucuri.