¿Cómo agregar imagen destacada sin ocupar espacio en mi web?

  • Autor Autor juliusms
  • Fecha de inicio Fecha de inicio
asi quedaria:
PHP:
<?php
$metaimg = get_post_meta( get_the_ID(), 'imagen', 'http://www.imghentai.com/wp-content/uploads/2014/07/Hentai_logo_by_nesco.png');

if($metaimg=="") $metaimg = "http://www.imghentai.com/wp-content/uploads/2014/07/Hentai_logo_by_nesco.png";

echo '<img class="attachment-post-thumb wp-post-image" width="210" height="158" alt="'.get_the_title(get_the_ID()).'" src="'.$metaimg.'">';
?>
 
Listo esta 100% funcionando, muchisimas gracias!

Si algun dia haces tutoriales php no olvides en pasarme el link por privado jeje xD
 
Hay un par de plugins que alojan las destacadas -y las normales- fuera del hosting...
 
Atrás
Arriba