Support » Fixing WordPress » Show only Miniature.

  • Hi, I nedd Show only Miniature in my website, without description.

    my website: http://peliculasonlinelatino.vv.si

    Function:

    # Displays post image attachment (sizes: thumbnail, medium, full)
    function dp_attachment_image($postid=0, $size='thumbnail', $attributes='')
    {
     if ($postid<1)
      $postid = get_the_ID();
     if ($images = get_children(array(
            'post_parent' => $postid,
            'post_type' => 'attachment',
            'numberposts' => 1,
            'post_mime_type' => 'image',))) 
    
     foreach($images as $image)
     {
      $attachment=wp_get_attachment_image_src($image->ID, $size);
     }
     else 
    
      ?>
    <img src="<?php echo $attachment[0]; ?>" <?php echo $attributes; ?> >
    <?php
    }

    Loop:

    <div class="topContent"><?php
        dp_attachment_image($post->ID,'thumbnail','width="120px"',
           1,'<div class="post-thumbnail">','</div>',-1);
      the_content('(continue reading...)'); ?>
       </div>

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show only Miniature.’ is closed to new replies.