[Support request] Setting a custom image size for the featured post

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Setting a custom image size for the featured post

  • This topic has 16 replies, 2 voices, and was last updated 1 year ago by Tom.
Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #19126
    Carol
    Participant

    Sorry, yes, it did change. This is the new URL: http://walsh2.tbrn-aotw.com/life-lessons/

    #19145
    Tom
    Keymaster

    Let’s try this:

    add_filter( 'wpsp_default_image_size', function( $size, $settings ) {
        if ( 123 === (int) $settings['list_id'] && $settings['featured_post'] ) {
            return 'full';
        }
    
        return $size;
    }, 10, 2 );
    
    add_filter( 'wpsp_settings', function( $settings ) {
        $settings['featured_post'] = wpsp_get_setting( $settings[ 'list_id' ], 'wpsp_featured_post' );
    	
        return $settings;
    } );
Viewing 2 posts - 16 through 17 (of 17 total)
  • You must be logged in to reply to this topic.