WordPress.org

Ready to get started?Download WordPress

Forums

Show only Miniature. (4 posts)

  1. chuchoca
    Member
    Posted 10 months ago #

    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.

  2. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 10 months ago #

    Which theme are you using and where did you get it from?

  3. chuchoca
    Member
    Posted 10 months ago #

    Hi Andrew...

    http://citizenjournal.net/

    Theme: http://citizenjournal.net/newschannel/

    in the footer my site its the copyright.

  4. WPyogi
    Volunteer Moderator
    Posted 10 months ago #

    You may want to repost this on the theme's sub-forum here:

    http://wordpress.org/support/theme/newschannel#postform

Reply

You must log in to post.

About this Topic