Shows the featured image below the header on single posts and pages, unless the page is the front page. Uses the filter `twentyseventeen_should_show_featured_image` in a child theme or plugin to change when the image is shown. This example prevents the image from showing: add_filter( 'twentyseventeen_should_show_featured_image', '__return_false' );
N/A
Sortie :
@return bool Whether the post thumbnail should be shown.
// Utilisation de la fonction twentyseventeen_should_show_featured_image
$result = twentyseventeen_should_show_featured_image();
if ($result) {
// Votre logique ici
}
Chargement des actualités...