Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/07/2015, 14:12
Avatar de el_tigre
el_tigre
 
Fecha de Ingreso: febrero-2006
Ubicación: Perú
Mensajes: 1.044
Antigüedad: 18 años, 2 meses
Puntos: 8
De acuerdo Post de otra página con miniatura

amigos, intento mostrar unos 5 post de otra página pero quiero llamarlo con su miniatura, actualmente sólo me aparece el texto....¿puedes ayudarme? este es mi código.

Código PHP:
<div class="hpfeatured">
<?php include_once(ABSPATH WPINC '/rss.php');
$rss fetch_rss('http://miweb.com/feed/');
$maxitems 5;
$items array_slice($rss->items0$maxitems);
?>


<?php if (!empty($items)) 
foreach ( 
$items as $item ) : 
global 
$post;
$thumb vp_get_thumb_url($post->post_content);
?>

<li>
    <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
    <a href="<?php the_permalink() ?>">

    <?php global $post$thumb=vp_get_thumb_url($post->post_content); 

    if (
$thumb!=''

    echo 
'<img width=90px height=120px;" src="'.$thumb.'" alt="'get_the_title().'" />'?>
    <div class="div_bloque">
    </a>
    </div> 
    <p><?php echo $item['description']; ?></p>
</li>
<?php endforeach; ?>

</div>