Created
December 17, 2016 16:56
-
-
Save webprogramacion/d302651b1f3551dc9b0219ae9af6a44c to your computer and use it in GitHub Desktop.
Cómo conseguir la URL de la imagen principal de un post, seleccionando el tamaño
This file contains 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
$thumb_id = get_post_thumbnail_id(); | |
$thumb_url = wp_get_attachment_image_src($thumb_id,'medium', true); | |
$url_imagen=$thumb_url[0]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment