WordPress.org

Ready to get started?Download WordPress

Forums

Create an image using add_image_size() only when uploading from a certain page (1 post)

  1. David Gard
    Member
    Posted 2 years ago #

    Hey all,

    I'm using add_image_size('service-banner', 150, 84, false); to set a new image size when uploading

    Is there a way to make it so that WP will only create an image of that size if the image is uploaded through a certain page (say ID 1234)? Basically I'll never need that size for any other purpose, so it seems silly to create a version evert time I uplaod an image.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.