SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict aliqayyum's Avatar
    Join Date
    Oct 2009
    Posts
    303
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how can make related posts thumbnails larger

    hi friends

    i need your help

    kindly open this

    http://inspiretrends.com/alternative...dobe-indesign/

    you can see related posts below content, its thumbnails are smaller! i wanted to increase the image size

    i wanted to look like this related posts below content

    http://www.designzzz.com/tools-css-optimization/

    can you guide me proper code? which i can insert or edit

    thanks

  2. #2
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    811
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Not a very clear question.
    did you re size the images in something like photoshop/gimp already then and it didn't work?

  3. #3
    SitePoint Addict aliqayyum's Avatar
    Join Date
    Oct 2009
    Posts
    303
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by pdxSherpa View Post
    Not a very clear question.
    did you re size the images in something like photoshop/gimp already then and it didn't work?
    thanks for replying

    i am using wordpress, this is a code, check , might it helps you

    <?php if($options['mts_related_posts'] == '1') { ?>
    <?php $categories = get_the_category($post->ID); if ($categories) { $category_ids = array(); foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id; $args=array( 'category__in' => $category_ids, 'post__not_in' => array($post->ID), 'showposts'=>3, 'caller_get_posts'=>1, 'orderby' => 'rand' );
    $my_query = new wp_query( $args ); if( $my_query->have_posts() ) {
    echo '<div class="related-posts"><div class="postauthor-top"><h3>'.__('Related Posts','mythemeshop').'</h3></div><ul>';
    while( $my_query->have_posts() ) { ++$counter; if($counter == 3) { $postclass = 'last'; $counter = 0; } else { $postclass = ''; } $my_query->the_post();?>
    <li class="<?php echo $postclass; ?>">
    <a rel="nofollow" class="relatedthumb" href="<?php the_permalink()?>" rel="bookmark" title="<?php the_title(); ?>">
    <span class="rthumb">
    <?php if(has_post_thumbnail()): ?>
    <?php the_post_thumbnail('related', 'title='); ?>
    <?php else: ?>
    <img src="<?php echo get_template_directory_uri(); ?>/images/relthumb.png" alt="<?php the_title(); ?>" width='82' height='60' class="wp-post-image" />
    <?php endif; ?>
    </span>
    <span>
    <?php the_title(); ?>
    </span>
    </a>
    </li>
    <?php } echo '</ul></div>'; }} wp_reset_query(); ?>
    <!-- .related-posts -->
    i wanted to change the images width and height 4cxdK0Q.png

    i wanted to similar like this

    2wgdsld.jpg

    thanks, waiting

  4. #4
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    811
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    well. first off:
    1.you should mention as much pertinent info as possible in the original post. Like mention at that time that is it on wp
    2.Might be better off in the wp section, not css.
    3.in wp function.php I believe is where you'd set the size. I used.

    Code:
    add_theme_support( 'post-thumbnails' );
    //set_post_thumbnail_size( 50, 50, true );
    ?>
    A good series of tutorials for you to check out is at
    https://www.youtube.com/channel/UCI-...uNGB_ZFuutlMYw
    in his them to wp section he covers thumbnails.

    Good luck
    D


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •