• Skip to primary navigation
  • Skip to main content
  • Skip to footer

altaneus

Pensées pour moi-même...

  • Home
  • Snippets
  • About

Add schema.org attribute to the featured image

Publié le 2 January 2015 par Stefano / Dernière modification le 20 January 2019

How to add schema.org attribute to the featured image (itemprop:image).

<?php

// Wordpress only
the_post_thumbnail('thumbnail', array('itemprop' => 'image'));

// Genesis

$image_args = array(
         'attr' => array(
             'itemprop' => 'image',
       ),
);

genesis_image( $image_args );

Footer

Recent Posts

  • Jetpack Stats – il va falloir payer
  • Jetpack Personal : augmentation de prix
  • Générateurs de mots de passes
  • Générateur de GUID/UUID
  • Appareil photo du Samsung S22 Ultra

Categories

  • Apache
  • Cloudflare
  • DNS
  • Genesis
  • Infomaniak
  • Jetpack
  • Non classé
  • Outils
  • Photographie
  • Sécurité
  • Uncategorized
  • Wordpress
  • WP Rocket

Copyright © 2025 · Genesis Framework · WordPress · Log in