• Resolved chinatownlee

    (@chinatownlee)


    Hi, Greg,

    I’m using force featured image snippet which works great.

    Is it possible to force the featured image to be the 1st one in line? Currently its the last one uploaded which confuses the users since they tend to think that the first one they upload actually would represent their advert.

    Or..

    Otherwise it would be great if the 1-click option to select/deselect Featured Image without opening a full screen popup with all the options that ordinary simple users of the classified website find to be confusing and an overkill.

    Looking forward to your reply.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    In the snippet try replacing code

    
    foreach( $children as $child ) {
        update_post_meta( $post_id, '_thumbnail_id', $child->ID );
        return 1;
    }
    

    with

    
    if( isset( $children[0] ) ) {
        update_post_meta( $post_id, '_thumbnail_id', $children[0]->ID );
        return 1;
    }
    
    Thread Starter chinatownlee

    (@chinatownlee)

    It worked, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Forcing Featured Image’ is closed to new replies.