• 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)
  • Plugin Author Martin Stehle

    (@hinjiriyo)

    The code you cited is in the file already. I do not understand what you wanted to say. May you explain it, please?

    Plugin Author Martin Stehle

    (@hinjiriyo)

    I am thinking I got it. Yes, the plugin checks whether there is an ID set as featured image but does not check whether the image file exists.

    I will ponder about adding file existence checks.

    Plugin Author Martin Stehle

    (@hinjiriyo)

    Hi Dinesh, what about a new feature in the plugin enabling you with one single click to delete all orphaned (“file-less”) thumbnail entries in the postmeta?

    Thread Starter Dinesh Kesharwani

    (@cyberwani)

    Hi Martin,
    Yes, one-click options can be helpful to remove orphan-thumbnail entries in bilk. But, as well as if there is a fallback image (something like broken-image icon) in column display, it can also be helpful.

    So, adding one-click deletion and fallback-image, both can be good opion.

    Plugin Author Martin Stehle

    (@hinjiriyo)

    There are good news for you: Both features will be implemented in the coming new version, will come next week.

    Plugin Author Martin Stehle

    (@hinjiriyo)

    Implemented since version 13.0. If you like the new feature I would be glad about your review.

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.