Try to add custom thumbnail size with unlimited(very big) hegiht and width in functions.php with following code:
add_theme_support( 'post-thumbnails' );
add_image_size( 'custom', 9999, 9999 );
It will not crop any images. So you can use it as the_post_thumbnail( 'custom' );
This method looks rough but you can use if other ways don’t work. And if you already have images, you can use regenerate thumbnails plugin.
Related Posts:
- The the_post_thumbnail without srcset?
- WP “optimizing” PNGs into thumbnails 5X larger than originals – FIX
- optimized PNGs 5X larger than originals
- Get the first image from post content (eg.: hotlinked images)
- How to get gallery images?
- add_image_size is scaling, even though crop is set to true
- Unexpected width and srcset attributes for the_post_thumbnail();
- How do I get gallery thumbnail URL and change the default thumbnail size?
- How to set dimensions of the post thumbnails (featured images)
- Reasons why all thumbnail sizes aren’t working
- How do I Add images uploaded in the post to a default custom field
- How do I turn a post thumbnail into a background image?
- What is the meaning of WordPress’s recommended css classes and where are they applied?
- Theme thumbnail in dashboard
- Set a featured image as a replacement to the header image
- How To Pick Custom Size Of Uploaded Image In Theme Via the_post_thumbnail();?
- Change image size depending on page
- How to disable thumbnail filter for a specific template part or image size?
- Are seven additional image sizes are too many?
- Change Image Sizes for Mobile Theme
- How to make excerpt image be full size instead of thumbnail?
- How to add cropped custom header image?
- Is there a way to serve different resolution images to different devices?
- How can I scale down the width of images in bulk that are embedded in posts throughout the site?
- Add image URL automatically to custom field?
- theme directory fallback image outputs url and not the image
- Can’t upload images on new theme
- Full width thumbnail
- Featured Image Module Randomly Disappears
- Any disadvandages if I style the wordpress align classes without img and .wp-caption prefix
- Show post thumbnail only if it exists using timthumb
- I want to resize post featured image without cropping image. How?
- Sizing screenshot.png without losing aspect ratio
- WordPress Theme Preview Image
- How to add CSS class to custom logo?
- How to add custom css file in theme?
- How to disable WordPress from creating thumbnails?
- theme path in javascript file
- get_template_part vs action hooks in themes
- set_post_thumbnail_size vs add_image_size
- The proper way to include/require PHP files in WordPress
- after_setup_theme always runs
- Do I actually need to link my theme’s style.css in the theme files
- Using classes instead of global functions in functions.php
- WordPress API Menu/Submenu Order
- How to insert a logo in the header?
- How to move page template files like page-{slug}.php to a sub-directory?
- CSS classes for theme
- the_post_thumbnail responsive srcset not populating with custom image size
- Add custom classes to anchor in wp_nav_menu
- How to remove search bar from a wordpress theme? [closed]
- Should `get_template_directory_uri()` be escaped?
- New image size version only for the Featured Image file
- Get url of thumbnail from the media uploader
- My child theme doesn’t work Error: “The parent theme is missing. Please install your parent theme”
- Is there a hook which fires after all thumbnails are generated?
- How To Add New Option Types To Option Tree?
- How to remove proudly created by WordPress in theme?
- getting id of page
- Roll my own theme or customize an existing one [closed]
- How to create full header but keep content narrow
- Why do some sites show themes/”themename” as the only theme?
- Isotope overlapping .items because of featured images – HELP! [closed]
- Is there any open source WordPress Themes?
- How do I add new layout width options in WordPress editor?
- Correct way to make a custom block theme responsive
- .submenu class missing in output from wp_nav_menu
- How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?
- Is there a way to have WordPress autodetect page templates in the page-templates directory and any sub-folders?
- What is the point of using the front-page.php template? [closed]
- My wordpress site memory exhausted more than 1GB trying to debug with default
- Custom Theme functions.php – Using add_settings_field and input type=”file” to set custom logo
- How to show associated fields if checkbox is checked in customize widget screen using wp_customize?
- Meaning of “if ( is_home() && ! is_front_page() )” snippet?
- How do I work with responsive images in WordPress? (img srcset/sizes)
- How to automatically set a Template Page Name next to a page in menu screen such as WooCommerce pages, front page, or posts page in wordpress?
- Dynamic nav menu with icons [closed]
- WordPress pointing animated GIF images with wrong file name upon upload (GIFs animation not working)
- Full site editing templates folder vs block-templates
- How do I send out an update for my custom wordpress theme?
- TItle In Latest Post is not using H1 Tag [closed]
- Is via.placeholder.com a good site to auto-generate placeholder images?
- Should we escape the values of constants?
- Is child-theme required when modyfing “Appearence > Editor”?
- How to Add Dynamic Sliders to WordPress Customizer with JavaScript
- How to add multiple custom blocks in custom WordPress theme using create-block?
- Export WordPress theme with modifications for other site
- WP Update Messages get cut off during Theme update
- Trying to create a cutom query with pagination and page 2 breaking. Any help?
- Why is wp_nav_menu() not removing the container around the nav ?
- Confusion about theme’s parent and child functions.php file
- Theme folder name changed after update theme
- editor.css and block-editor.js are not applied even though they are in the theme setup
- Convert base64 string to WordPress attachment uploads multiple images instead of a single one
- Modify HTMl on header.php on Block Theme like Twenty Twenty Three?
- How to add custom attributes to wordpress block theme
- Full Site Editing, Block Theme, Gutenberg, Site Editor
- how to combine wordpress and front framework
- .htaccess for file .zip for update WordPress Theme self-host [closed]
- add_image_size() parameter four ($crop = true) is ignored: the_post_thumbnail() returns scaled image(s) instead of hard cropped