Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Is there a way to change a post’s thumbnail image(s)?

Facebook scrapes your pages for images to go along with the post you share. When it finds an image on the page it will use that.

To specify which image exactly you have to use Open Graph tags in the head part of you html page. The og:image tag in particular:

<meta property="og:image"
content="http://graphics.myfavnews.com/images/logo-100x100.jpg" />

Here is a list of plugins that insert the Open Graph tags for you.
If you like to put the Open Graph-tag code in functions.php yourself, check this article.

Good luck!

Related Posts:

  1. How to disable WordPress from creating thumbnails?
  2. set_post_thumbnail_size vs add_image_size
  3. the_post_thumbnail responsive srcset not populating with custom image size
  4. Set custom name for generated thumbnails
  5. New image size version only for the Featured Image file
  6. wp_get_attachment_image_src always returns full-sized image
  7. Add Title Attribute to WordPress Image the_post_thumbnail
  8. Can WordPress crop only the post thumbnails?
  9. Query the post which have a thumbnail
  10. Autogenerated Thumbnail compression depending on size
  11. How to use images uploaded with custom implementation of thickbox like the_post_thumbnail() functionality
  12. Media thumbnail for custom post inside post content
  13. Thumbnail and Featured Image With Fixed Sizes?
  14. List category posts – Thumbnails are not displaying
  15. Why am I getting errors in product.thumbnails.php? [closed]
  16. how i can increase Featured thumbnails size?
  17. How check that there is post thumbnail feature image or not on wordpress?
  18. Force WordPress to strip/remove EXIF/IPTC metadata when resizing thumbnails
  19. If I Regenerate Thumbnails, would WordPress delete the existing Thumbnails and replace them with ‘new copies’?
  20. Is it possible to nest get_previous_post()?
  21. How to get cropped thumbnail source for custom post type
  22. Get ID of featured image using “get_post_thumbnail_id(the_ID())” – without printing to screen?
  23. How to offset thumbnails to the center?
  24. Sidebar Thumbs Squished?
  25. Aligning the thumbnail image
  26. Post thumbnail not working after regenerate
  27. How do get post thumbnail into plugin?
  28. “Medium” size image displayed instead of “thumbnail” in only one post, other posts are fine
  29. How to create resized versions of images added with wp_insert_attachment
  30. get_post_thumbnail_id() Doesn’t return value [closed]
  31. How To Add and Display Category Image
  32. get_the_post_thumbnail(‘thumbnail-name’) always returns empty string
  33. Can’t get post thumbnail to display in foreach loop
  34. Show posts image attachments
  35. Thumbnail is showing outside its div instead of inside it
  36. get_post_thumbnail does not display thumbnail
  37. Category page with thumb is ok but can’t do the same with tags
  38. how can I call a posts featured image in any template?
  39. how to resize thumbnail image
  40. Different thumbnails for index and article page
  41. Featured image for social sharing ot author archive page
  42. Thumbnails not being generated for PDF files
  43. Thumbnail size problem Desktop vs Mobile site
  44. How do you code a featured image into an XML as a jpg link, instead of using a data-id number?
  45. White image when I share my site
  46. How to change the format of thumbnails into wordpress theme?
  47. display div tag only if post has thumbnail
  48. Thumbnails are hard cropped not matter what
  49. Thumbnails regenerate wp_generate_attachment_metadata
  50. Featured image size always cropped bottom
  51. set_post_thumbnail() shows Unattached on backend under Media
  52. Allow ‘Set featured images’ to select multiple images
  53. Why wordpress doesn’t generate thumbnails?
  54. Force Regenerate Thumbnails Not Working
  55. Trouble Retrieving Thumbnail URL on Front-Page
  56. I would like my posts to pull my custom cropped thumbnail instead of creating its own thumbnail from Featured Image
  57. WordPress save thumbnail but don’t show it [closed]
  58. Automatic adding thumbnail to post
  59. Different thumbnail size than actual picture in post
  60. Where is the template from the_post_thumbnail()?
  61. Images thumbnail not cropping square
  62. How do I set a featured image (thumbnail) by image URL when using wp_insert_post()?
  63. How do I get image url only on the_post_thumbnail
  64. How to get image title/alt attribute?
  65. How to Fix HTTP Error When Uploading Images?
  66. Add class name to post thumbnail
  67. How to retrieve image from URL and set as featured image/post thumbnail
  68. How to set featured image to custom post from outside programmatically
  69. How do you remove hard coded thumbnail image dimensions?
  70. How do you get the post thumbnail size?
  71. Setting a post’s featured image from an embedded YouTube video
  72. How to get featured image’s width and use elsewhere in template?
  73. Minimum Dimensions Requirement for Featured Image?
  74. Generate Thumbnails only for Featured Images
  75. How to get all featured image sizes and their URLs?
  76. How to Dynamically Resize WordPress Image On-The-Fly (custom field/theme option)
  77. How to add post featured image to RSS item tag?
  78. How do I regenerate thumbnails?
  79. Display thumbnail only if requested size exists
  80. Delete original image – keep thumbnail?
  81. Post thumbnail alt title
  82. Get Featured Image via direct sql query
  83. Get featured image on Blog Index
  84. the_post_thumbnail hard cropping not working no matter what
  85. Can I refresh the thumbnails programmatically?
  86. How to add multiple image sizes of the same size with add_image_size
  87. Get featured image URL by page id
  88. change set_post_thumbnail_size according to post type admin page
  89. Can’t extract and set SVG dimensions
  90. Set Featured Image Front Frontend Form
  91. Is there a hook which fires after all thumbnails are generated?
  92. Getting Thumbnail Path rather than Image Tag
  93. Display Category Thumbnail and links in Woo commerce
  94. the_post_thumbnail with lazyload JQ plugin
  95. Replacing Gutenberg Featured Image control?
  96. Display Post Thumbnail Without Being Featured Image
  97. Featured Image of Video from oembed
  98. oEmbed, thumbnails and wordpress
  99. wp_get_attachment_image_src() and custom sizes
  100. Prevent WordPress from cropping GIF files
Categories post-thumbnails Tags post-thumbnails, sharing, social-sharing, thumbnails
pagination redirecting from page number url before page requested
Installing WordPress only for a separate page – ‘mydomain.com/blog’

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress