[Resolved] Function to remove featured image on archive ?

Home Forums Support Function to remove featured image on archive ?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1372317
    Fabien

    Hi,

    Is there a php function to remove the featured image on an archive page ?

    Thanks !

    #1372325
    Fabien

    Nevermind, I’ve found it :

    add_filter( 'option_generate_blog_settings', function( $options ) {
        if ( is_post_type_archive( '$post-type' ) ) {
            $options['post_image'] = false;
        }
    
        return $options;
    } );
    #1372342
    Leo
    Staff
    Customer Support

    Glad you were able to figure out.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.