You can use the get_post_thumbnail_id
to get the ID of the thumbnail, then with the function wp_get_attachment_image_src
you can get the image of the size you want, including full size, using the second paramenter.
$thumb_id = get_post_thumbnail_id(get_the_ID());
$thumb_data = wp_get_attachment_image_src( $thumb_id, 'full');
Now in $thumb_data
you have a nice array, or false
if there’s no image.
The array has this structure:
[0] => url
[1] => width
[2] => height
[3] => boolean: true if $url is a resized image, false if it is the
original.
Related Posts:
- What Plugin Do You Use to Turn WordPress based site to A Blog Aggregator
- Setting up PubSubHubbub (PUSH) with WordPress
- Which plugin can do horizontal scrolling of RSS feeds in WordPress [closed]
- Best way to duplicate specific page content across two sites?
- On my WordPress 5.4 website, how to remove all feeds? Including Category and Tags
- RSS Feed has no Items (Possible Plugins Conflict)
- Getting table to format properly in RSS feed emails
- Getting table to format properly in RSS feed emails
- How do I create an HTML embed code to publish WP posts on other non-WP websites?
- PHP Deprecated: Non-static method should not be called statically
- Members Only site with Feed Keys
- How is the ” wp_get_update_data ” function used?
- Server-side subscribe by email?
- Are there plugins that interfere with the admin part of Rss widget?
- Simple plugin for showing RSS subscription links?
- WordPress plugin changelog RSS
- How to style the RSS wordpress?
- how to protect WordPress RSS Feed from “Feed Fetcher”
- Blog titles from WP blog on plain html site?
- External RSS feed to WordPress Portfolio
- Adding regex filter to feedwordpress
- How to reorder and display a feed to be chronological?
- How to grab facebook page feed?
- How do I get a post author’s image/avatar via RSS from another blog?
- WP RSS Aggregator plugins breaks after switch to HTTPS
- how to convert XML from URL to HTML
- Replace image urls(absolute instead of relative) by using filter in single page
- How can I add rel=”nofollow” attributes on RSS widgets?
- WordPress Following? Social Users?
- RSS feeds for specific topics
- Custom WordPress feed on Apache server returning 304 response for if-modified-since
- RSS icons have the same Alt tag. Lighthouse is failing these elements. How do I display different alt tags for each icon?
- WordPress PHP error getting posts from another wordpress blog
- “Share” Content from Another Site as Post
- Add HTML between feed items
- What is the RSS feed link for the newest WordPress plugins?
- Simply Exclude – Category feed exclusion is excluding from category feed instead of just the main feed
- Pulling RSS from site and display it in posts
- rss feed code help
- How to show random feed from DB and show content in my site
- Developing a Site Like AllTop.COM – RSS Reading Problem
- What are Seeds? [closed]
- How to Change Default RSS Feed URL in WordPress Website?
- How to view Plugin Manager in Notepad++
- Use Notepad++ as HEX-Editor
- fix the error : Plugin with id ‘com.android.application’ not found
- Best collection of code for your 'functions.php' file [closed]
- Tips for using WordPress as a CMS? [closed]
- Adding a Taxonomy Filter to Admin List for a Custom Post Type?
- Updates for a private plugin?
- Uninstall, Activate, Deactivate a plugin: typical features & how-to
- Best way to initiate a class in a WP plugin?
- Which banner plugin is this? [closed]
- Upgrade 4.5.2 to 4.5.3 deleting row in wp_options table
- Woocommerce – adding variations to variations [closed]
- Best way to include wp-config.php
- similar of my posts in all over the internet sites and blogs [closed]
- Between functions.php (theme), widgets, and plugins, which is loaded first?
- Create custom page templates with plugins?
- Custom Post Type Templates from Plugin Folder?
- to perform the requested action wordpress needs to access your web server. please enter your ftp
- Disable update notification for individual plugins
- Passing a parameter to filter and action functions
- Do deactivated plugins slow down a WordPress site?
- What security concerns should I have when setting FS_METHOD to “direct” in wp-config?
- How do you debug plugins?
- How to structure a plugin
- What’s the preferred method of writing AJAX-enabled plugins?
- Get Product id from order id in Woocommerce [closed]
- Add multiple plugin directories
- What are the differences between WPINC and ABSPATH?
- Translate a plugin using .po .mo files
- Best way to overide plugin CSS?
- How to add a shortcode button to the TinyMCE editor?
- Where do I put the code snippets I found here or somewhere else on the web?
- Is there a plugin that provides a stackoverflow style editor for wordpress? [closed]
- Get a list of all registered actions
- How can I force a file download in the WordPress backend?
- What Plugins Demonstrate Great WP Plugin Development? [closed]
- How to implement a customizable free OpenID authentication?
- Should all plugins be encapsulated in a Class?
- How to check if the product is in a certain category on a single-product.php in Woocommerce?
- How can I stop WordPress from prompting me to enter FTP information when doing updates?
- In what order does WordPress load plugin files?
- What Features would you Most Like to See Added to WordPress? [closed]
- Given the ID of a product in woocommerce, how can I get its URL?
- Adding Additional Attributes in Script Tag for 3rd party JS
- How can I edit post data before it is saved?
- Manually set global $post vars with an ID, in order to use template tags
- is_plugin_active function doesn’t exist
- How To Activate Plugins via Code?
- Disable plugin / plugin action via theme
- ‘Global’ settings page for multisite plugin
- Activate a plugin through PHPMyAdmin or FTP?
- What Are Security Best Practices for WordPress Plugins and Themes? [closed]
- How can I use WordPress functions in my stylesheet?
- How do I show data from gravity forms in my template? [closed]
- Show a different number of posts per page depending on context (e.g., homepage, search, archive)
- Creating a plugin with dependencies
- How can I make add_image_size() crop from the top?