Created
June 23, 2017 06:59
-
-
Save nicomollet/8b651e81dc964ea1c836931ed5d3d404 to your computer and use it in GitHub Desktop.
Insert responsive image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Appeler une image de Média de la bibliothèque WordPress, avec l'ID de l'image en question | |
echo wp_get_attachment_image( 18662, 'large', false, ['class' => 'customclass', 'id' => 'customid']); // thumbnail, medium, large, full | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment