• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
Join Sessions

Join Sessions

Tech Blog

  • Home
  • About
  • Blog
  • Marketing
  • WordPress
  • Tips
  • Contact Us

How To Get The Post Thumbnail URL In WordPress

September 5, 2022 by Cathy Leave a Comment

WordPress or WP is an open-source management system of content (CMS) and it is free as well. Its features generally include a template and a plugin which are collectively referred to as Themes in WordPress.

Do you want to get a WordPress featured image post’s URL? This can come in handy to you if you develop your own child theme or WordPress theme. You can also make little tweaks to any theme that does not show any featured image post by default.

Do not worry, as, in this article, we will discuss how to achieve or how to get the post thumbnail URL in WordPress.

But, first, let us discuss why we should get one.

Why get a URL of the post thumbnail in WordPress?

Adding a featured image or a thumbnail to your posts on WordPress makes them more attractive and appealing. Thus, adding a few elements of visual interest will make your WordPress blog appear more interesting and attractive.

If you wish to share or upload a post to your social media, you might require copying the URL/link to the image that is featured or any other picture in your post.

However, if you wish to develop your personal theme or modify a theme from existing work, you can get post thumbnail URL if you want to utilize it along with a customized markup of your own. In such cases, you will require to add a snippet of code to the files of your theme.

Now, you will learn how this can be done step by step through a guide on how to get the post thumbnail URL in WordPress.

How to get the post thumbnail URL in WordPress?

If you want to get a URL of a thumbnail of a post, then you will need to get a code added to the template of the theme you are trying to customize.

Or, if you need to display a post thumbnail simply, then you can paste the code on the template that you’re presently working on (customizing), in the middle of WordPress.

Now, if you wish the thumbnail post to get displayed by using your own customized markup or using the theme thumbnail in a different way, you need to achieve the URL of the thumbnail of the post.

Instead of this, into the template, you can paste this particular code.

This particular code will simply display the featured image’s URL. Then, you can custom change the code and utilize the thumbnail URL of the post in any which way you wish.

Also, you can custom change the image’s size. You will have to replace the �medium’ word with some other image size (default) like �thumbnail’, �large’, �full’, or medium-large’.

You can even use an additional image size that is your creation. Ensure to regenerate the thumbnails if you use a customized image size.

Conclusion

We hope we were able to guide you through all your queries through this article and now you will be able to get the thumbnail URL of a post in WordPress.

Filed Under: WordPress

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

About Us

Hey! I’m Cathy a mother of two beautiful girls and a Marketing Manager working from home. I enjoy the flexibility that working from home allows. When I’m able to set my hours, it helps me stay focused on a task and track my productivity. Read More…

Connect with us

  • Facebook
  • Instagram
  • Twitter

E-mail Newsletter

Recent Posts

How Can I Get a Quick Divorce in Alabama

January 31, 2023 By Cathy

Remittance Revolution: 5 Technology Trends That Changed How Remittances Work

January 5, 2023 By Cathy

Can Bankruptcy Save Your Home

December 8, 2022 By Cathy

Success Study LLC

Web Success Portal: Social Media Trend Predictions For Small Businesses

December 2, 2022 By Cathy

Proven SEO Marketing Tips That Work

November 24, 2022 By Cathy

The Advantages Of Market Consulting Sydney Services

November 18, 2022 By Cathy

Mint Global Marketing Review

Mint Global Marketing Review: They Helped Us Achieve Our Social Media Goals

November 15, 2022 By Cathy

NFT Trends

NFT Trend Predictions With Jurgen Cautreels For 2022 And Beyond

November 15, 2022 By Cathy

American Hope Resources on Rent assistance

American Hope Resources: Can’t Pay Rent? Here Are Your Options Right Now

November 15, 2022 By Cathy

How to Find Out Who Actually Owns a Domain

September 9, 2022 By Cathy

Footer

About Us

Hey! I’m Cathy a mother of two beautiful girls and a Marketing Manager working from home. I enjoy the flexibility that working from home allows. When I’m able to set my hours, it helps me stay focused on a task and track my productivity. Read More…

Connect with us

  • Facebook
  • Instagram
  • Twitter

Recent Post

  • REASONS TO ADOPT FIELD SERVICE SOFTWARE IN YOUR HVAC COMPANY
  • How Can I Get a Quick Divorce in Alabama
  • Remittance Revolution: 5 Technology Trends That Changed How Remittances Work
  • Can Bankruptcy Save Your Home
  • Web Success Portal: Social Media Trend Predictions For Small Businesses

E-mail Newsletter

Copyright © 2023 · Join Sessions| All Rights Reserved