WPIntell

Source evidence

Extraordinary

Multiple Featured Images · review · 2019-11-22T20:05:00+00:00

praisesentiment
mediumseverity
0.5relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 33 rows with source links

12.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

review · 5 stars
niceapps unresolved
Exactly what I was looking for ! Works great with the latest version of WordPress (5.3) No need for shortcode! To obtain a featured image that loads automatically according to the language of the plugin qtranslate-x, you can add in the file functions.php: add_filter( 'kdmfi_featured_images', function( $featured_images ) { $args = array( 'id' => 'featured-image-en', 'desc' => 'English version of the feature image.', 'label_name' => 'English featured image', 'label_set' => 'Set english featured image', 'label_remove' => 'Remove english featured image', 'label_use' => 'Set english featured image', 'post_type' => array( 'page', 'post', 'portfolio', 'app' ), ); $featured_images[] = $args; return $featured_images; }); add_filter( 'get_post_metadata', 'wdm_change_featured_image', 10, 4 ); function wdm_change_featured_image( $feature_image_id = null, $post_id, $meta_key, $single ) { if ( $meta_key == '_thumbnail_id' ) { if(function_exists('qtranxf_getLanguage')) { if (qtranxf_getLanguage() == 'en' && kdmfi_has_featured_image( 'featured-image-en', $post_id )) { $feature_image_id = kdmfi_get_featured_image_id( 'featured-image-en', $post_id ); } } } return $feature_image_id; }

Comments

0 shown

No comments were stored for this source.