• Topher

    (@topher1kenobe)


    I made a custom post type, and on the archive page it shows the Full size image. I want to change that to anything else. The place in the template where the image is being rendered simply has this:

    do_action( 'generate_after_entry_header' );

    How can I set the size of the image I want to appear?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Theme Author Tom

    (@edge22)

    Hi there,

    Try this filter:

    add_filter( 'generate_page_header_default_size', function( $size ) {
        if ( is_post_type_archive( 'your-post-type-name' ) ) {
            return 'your-desired-size-name';
        }
    
        return $size;
    } );

    Let me know if that helps or not ??

Viewing 1 replies (of 1 total)
  • The topic ‘Change featured image size in custom template’ is closed to new replies.