Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other WP – more than one thumbnail size?

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #31294
    JoshWhite
    Member

    Hi all, just curious if anyone has done this. I’m having a hard time locating any articles or resources saying if you can make an image associated to a post two different sizes based on where you are looking dynamically.

    As an example, the homepage would have a really large post image size as a feature. Then we would have an archive that would show the same image, but instead of being like 400×400, it would be 100×100.

    #65349
    dhechler
    Member

    try this

    	set_post_thumbnail_size( 50, 50 );

    the 50, 50 sets the size of the thumbnail if this is the post thumbnail

    #65281
    dhechler
    Member

    Yeah, you would apply this in the loop. It does override any globally set preferences.

    #65196
    dhechler
    Member

    Anytime.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Other’ is closed to new topics and replies.