Do you use WordPress? Do you need to get the post thumbnail URL? This guide will help you. Follow these simple steps to get the post thumbnail URL easily.

Credit: gracethemes.com
What is a Post Thumbnail?
A post thumbnail is an image. It shows with your post. It makes your post look better. It also helps readers know what your post is about.

Credit: www.wpbeginner.com
Why Do You Need the Thumbnail URL?
The thumbnail URL is the web address of the image. You need it to show the image somewhere else. You might need it for a custom design. Or for sharing the image.
Steps to Get the Post Thumbnail URL
Follow these steps to get the URL. It’s easy.
Step 1: Log In To Your WordPress Dashboard
First, log in to your WordPress site. Use your username and password.
Step 2: Go To Posts
Next, go to your posts. You will see a list of all your posts.
Step 3: Edit The Post
Find the post you want. Click on “Edit” to open it.
Step 4: Find The Featured Image
Look for the “Featured Image” box. It is on the right side. It shows the thumbnail image.
Step 5: Click On The Featured Image
Click on the thumbnail image. A new window will open. It shows the details of the image.
Step 6: Copy The Url
In the new window, look for the “File URL” box. Copy the URL from this box. This is the thumbnail URL.
Using the Post Thumbnail URL
Now you have the URL. You can use it in different ways.
Use In Custom Designs
Use the URL in your custom designs. Add it to your theme files. Or use it in custom widgets.
Share The Image
Share the image on social media. Use the URL to link to the image. It helps you get more visitors.
Code Example to Get the Thumbnail URL
Use code to get the URL. Add this code to your theme files.
if ( has_post_thumbnail() ) {
$thumbnail_url = get_the_post_thumbnail_url( get_the_ID(), 'full' );
echo $thumbnail_url;
}
This code checks if the post has a thumbnail. If it does, it gets the URL. Then it shows the URL.
Using Plugins to Get the Thumbnail URL
Some plugins help you get the URL. They make it easier.
Plugin 1: Simple Post Thumbnails
This plugin is easy to use. It helps you get the URL quickly.
Plugin 2: Featured Image Url
This plugin is good too. It shows the URL in the post editor. You can copy it easily.
Frequently Asked Questions
How Do I Get The Post Thumbnail Url In WordPress?
Use `get_the_post_thumbnail_url()` function to retrieve the post thumbnail URL.
Can I Use The Post Thumbnail Url In Custom Fields?
Yes, you can save and use the URL in custom fields.
What Is The Function For Post Thumbnail Url?
The function is `get_the_post_thumbnail_url()`.
Is It Possible To Display Post Thumbnail Url?
Yes, you can display it using echo `get_the_post_thumbnail_url()`.
Conclusion
Getting the post thumbnail URL is easy. Follow the steps in this guide. Use the URL in your designs. Or share it on social media. It helps make your posts look better. And it helps you get more visitors.
Step | Description |
---|---|
1 | Log in to your WordPress dashboard. |
2 | Go to Posts. |
3 | Edit the post. |
4 | Find the featured image. |
5 | Click on the featured image. |
6 | Copy the URL. |