So I found the issue. The twentyseventeen theme has a built-in function in functions.php that does this:
Add custom image sizes attribute to enhance responsive image functionality for post thumbnails
function twentyseventeen_post_thumbnail_sizes_attr( $attr, $attachment, $size )
it has an if (is_archive()) condition in there. I had to override the function with my own custom function using a higher priority and in that custom one remove the is_archive() condition.
Related Posts:
- How can I get the title attribute from get_the_post_thumbnail()?
- Set Featured Image for Archive templates
- How can I add a set featured image function to a theme that doesn’t already have it built in?
- Retaining old HTML archives and displaying themes conditionally
- How to reverse the pagination numbers of an archive?
- Archiving annual festival site
- How do you get thumbnails to show up in the admin edit post?
- 100% width Featured Image Size
- Showing post thumbnail (attachment) on the archive.php category listing
- Private theme update with zip archive without deactivating the theme
- Featured images, am I missing something?
- Recommended Media Size for Twenty Fourteen
- Migrating a website using custom image tags to use featured images instead
- How to reverse the pagination numbers of an archive?
- How do I get the featured image to sit below the header in the twenty nineteen theme?
- Edit box-header on WordPress Dashboard
- Featured images are cropped on index and post page
- Change theme’s thumbnail to cropped WP featured image
- Theme stops media uploader from working
- Create /archive page in WordPress Theme
- Featured image on page is not displayed with certain theme: how to debug this?
- How to change background color in the Notepad++ text editor?
- What are all the available parameters for query_posts?
- Does WordPress work without a theme?
- When cropping a header image, retain meta data (i.e. name, description, etc.) from original image?
- Difference between stylesheet_directory and template_directory
- Adding a Template to the Page Attributes Panel for both Posts and Pages?
- How do you change the theme location?
- How do I put my comment form above the comments?
- Edit theme wp_head
- Theme Advanced Styles in Visual Editor and Paragraphs
- Want to have the Post editor remembering the last editing position
- Enqueue different stylesheets using IE conditionals
- Override parent theme translation on child theme
- Forbidden 403 error, permission to access, unable to read htaccess
- Theme of codinghorror.com
- How to add template to theme in WP
- How can I show more than 15 themes at a time in the admin menu?
- What is the WordPress Pinecone sitting on top of? [closed]
- Create a dashboard-style site (not WordPress dashboard) – is there a theme? [closed]
- Help with WordPress Query
- Are theme .php files stored in the database?
- Execute filter in theme as last
- Why style.css with ?ver=3.9.2 not updating as the one without ?ver=3.9.2?
- Inconsistent translation on a WP site
- How can I have different theme with same booking table? [closed]
- Updating my free theme delete all my changes [closed]
- Do not show one specific widget on one specific page
- Website redesign – New theme – Help needed
- Should I implement my own custom theme
- How to translate a string that contains a WordPress sitename
- How can I manually activate my previous theme without browser access to dashboard?
- Advantages of wordpress theme vs wordpress as a backend only [closed]
- Theme, WordPress Version, MySQL Version, PHP Version Update affected files and folders
- Can “Classic Editor” plugin help to replicate the old website / theme development experience from c. 2011?
- Creating custom meta box throws PHP warning error in WordPress
- What is the point of needing add_theme_support( ‘html5’) in WordPress 5.x
- Plugin and themes are adding the same stylesheets
- How to display footer menus in wordpress
- WordPress EduPress and businessbite Theme Installation Failed [closed]
- How can my user make their own Blog/Diary
- Debugging in WordPress at Theme installation [duplicate]
- understanding theme hierarchy
- Re-zipping or extracting theme from wordpress site files
- Why does wordpress add Theme not list a specific theme anymore?
- WordPress theme layout problem
- current_user_can(‘manage_options’) causes white screen of death?
- different theme in one website
- WordPress | Theme error
- setcookie on WordPress Page Template
- Will I still have my website wordpress theme if I transfer my website to sites like Namecheap?
- How to change wordpress gutenberg editor font to match default theme font?
- Facebook Icon on top of WordPress Site Header and Top Bar
- How to make wordpress theme option page in columns?
- 404 not working, going to homepage; how to fix?
- Local LAMP Stack on Linux Mint theme upload fails
- WP Snippet to Hide Theme Editor In Dashboard Only Works On LocalHost Site
- How do WordPress themes work in relation to content?
- Featured image on archive page based on post type
- Custom CSS is overwritten by WordPress?
- Incorrect Theme and Upload URLs After Migration
- Using two stylesheets for mobile compatibility
- Featured Image Module Randomly Disappears
- Target Internal Link Of Another Page On Website
- Lost for direction on how to continue building a theme
- How to change images size after theme modification?
- Unable to access new installed theme
- Using a page (Blog template) for home page blog posts is problematic?
- Add a header widget to the twentyfourteen theme?
- Theme URLs problem
- I can’t install theme: theme install failed
- Static front page displaying twice
- Changing appearance of WooCommerce product layout [closed]
- Can’t install vEstate Real Estate WP Themes
- WordPress premiuim [closed]
- Setting colors in theme.json changes default font size and family in backend
- What’s the best way to go from a design to a customized WordPress site?
- Alternative to Underscore.me for gen custom blank theme [closed]
- Every newly created page links to the same deleted page
- Adding the portfolio category to the body_class on the portfolio detail page