Image display issue when Image ID exists without Image
-
Hi,
I faced issue when I imported CPT exported from one instance to another instance, but due to some issue images were not imported successfully. So, Featured Image Image ID was added in post meta, but actual image was not imported. So, it was not displaying in column.I added below code in ‘class-quick-featured-images-columns.php‘ at line #330.
else{ if ( current_user_can( $this->required_user_cap ) ) { /*$text = 'No image set'; _e( $text );*/ $text = 'Set featured image'; printf( '<a href="%s" id="qfi_set_%d" class="qfi_set_fi" title="%s">%s</a>', esc_url( get_upload_iframe_src( 'image', $post_id ) ), $post_id, esc_attr( sprintf( __( 'Set image for “%s”', 'quick-featured-images' ), _draft_or_post_title( $post_id ) ) ), _x( $text, 'post' ) ); } // if user may }
Take a look into this issue and add a fallback to display featured image in column,
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Image display issue when Image ID exists without Image’ is closed to new replies.