WordPress.org

Ready to get started?Download WordPress

Forums

How to read the post_thumbnail's original dimensions? (1 post)

  1. zenguerrilla
    Member
    Posted 3 years ago #

    Hello all,
    I'm developing a new plugin and I'm trying to figure out how to read the original dimensions of the post_thumbnail image.
    I want to read the 'x' & 'y' dimensions and use them as variables to determine if the original image is portrait or landscape.

    Any suggestions? TIA, zen.

Topic Closed

This topic has been closed to new replies.

About this Topic