WordPress.org

Ready to get started?Download WordPress

Forums

the_post_thumbnail - Size Selection Issue (1 post)

  1. floatingpointmatt
    Member
    Posted 2 years ago #

    When using the_post_thumbnail() and setting the size via an array, if either dimension matches a preset size then the preset is used instead of the requested size.

    There is no note about this in the Codex documentation (http://codex.wordpress.org/Function_Reference/the_post_thumbnail)

    It also appears in the wild without clear resolution...

    i.e.

    the_post_thumbnail( array(123, 150) ); // get thumbnail of 150x150 -- NOT 123x150 as expected

    Workaround:

    Set your requested size to something similar, but not exact (i.e. 123x149 or 123x151).

    Is there a bug report somewhere that I can follow that reports on the status of this issue?

    Can the Codex be updated to note this caveat?

    (I'm trying to follow the Bug Submission guidelines - http://codex.wordpress.org/Reporting_Bugs)

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by floatingpointmatt
  • This topic is not resolved
  • WordPress version: 3.3