• 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 To Post Thumbnail URL In WordPress

September 6, 2022 by Cathy Leave a Comment

Are you looking to learn how to get the post thumbnail URL in WordPress? Well, you have come to the right place. The post thumbnail URL can be a great way to make your content in WordPress can definitely enhance the reading experience of your content and can attract attention better than without it. Having a featured image can make your WordPress theme overall better, which is why in this article, we will be showing you how to get to post a thumbnail URL in WordPress

How To Post Thumbnail URL

Getting to post a thumbnail URL in WordPress can get a bit tricky. To post a thumbnail URL, you should add a code to the theme of the template that you are customizing; if you want to display a post thumbnail, you will need to place this code on the template that you are customizing in the WordPress loop. The code you will need to paste is:

echo get_the_post_thumbnail(get_the_ID(),’medium’);

If you are looking to post a thumbnail that is using your custom markup or a thumbnail that would fit your theme, you will need a different code that would post the thumbnail URL. Here is the code you will need to use for this to work:

echo get_the_post_thumbnail_url(get_the_ID(),’medium’);

By using the mentioned code above, you will be able to use the URL of the picture you want to feature on WordPress. You can customize the image size by replacing the ‘medium’ on the code; you have the options for your thumbnail image size being ‘medium-large’, ‘large’, or ‘full’, giving you four options, including medium. If you are looking to use a custom image size that you have created, be sure to renew and recreate the thumbnails to be able to use your custom-sized images.

Why Should You Use A Thumbnail URL In WordPress?

You can make your WordPress blog look better and more attractive to other readers by adding a thumbnail or featured image that would get their attention. Having a featured image can help enhance and develop a theme you are running on your blog, regardless if it’s an existing theme or your own theme. Featured images can make the content on your blog more engaging to the readers; if you are a WordPress developer, then learning how to add featured images is something that you would need to know to enhance your themes better.

Key Takeaway

Having a thumbnail or a featured image on your WordPress is excellent. It can help attract more readers to see your blog posts and can help enhance the overall theme of your blog. Adding a thumbnail URL also enhances the reading experience by having a visual aid for readers to see and relate the content to. Posting a thumbnail URL or featured image can be a bit tricky, so be sure to follow the guide mentioned above to be able to post these codes on your WordPress and get featured images on your blog post. We hope this guide was able to help you learn how to get to post thumbnail URLs 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