WordPress.org

Ready to get started?Download WordPress

Forums

dd_image_size for post type (3 posts)

  1. daleanthony
    Member
    Posted 2 years ago #

    I currently have this in my functions file, which works as expected:

    add_theme_support('post-thumbnails');
    // Custom Thumbnail Sizes
    add_image_size( 'square-small-thumb', 80, 80 );
    add_image_size( 'square-medium-thumb', 150, 150 );

    However as it's a large site i'm working on with various post types I don't want my assets folder to be cluttered with too many unused images, therefor I'd like to have some 'global' image sizes but then some image sizes specific to post types, is this possible?

    For example, I'd like

    add_image_size( 'square-small-thumb', 80, 80 );

    To only be generated for the post type 'news'

  2. marlonlamancio
    Member
    Posted 2 years ago #

    I look for same. Anyone?

  3. marlonlamancio
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic