Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: related posts with thumbnail images: miniatures not cropped images

  1. #1
    surferbloggy is offline Hello World
    Join Date
    May 2010
    Posts
    45

    Default related posts with thumbnail images: miniatures not cropped images

    hello! I'm using a plugin for related posts with thumbnail image that is called:
    Related Posts Thumbnails

    I have configured it this way:it takes pictures from a custom field with the url of the image
    only that the pictures are big they are not miniatures but cropped images

    there is also this feature in the plugin but I do not know how to do

    URL resize (theme): (if your theme resize images, please enter the URL to the PHP file)

    how can I get the resize of thumbnail images and not a crop, with some other plugin could you suggest me another?
    I have also a script in my theme that do that, related posts.php

    but it doesn't work but I do not understand why this is the code it does not work: could you give me a hand? thank you for your help

    Code:
    <?php /* include theme options */ include( TEMPLATEPATH . '/functions/get-options.php' ); ?>
    <div id="related-posts" class="clearfix"> 
        <?php
        $backup = $post;
        $tz_categories = get_the_category($post->ID);
        if ($tz_categories) {
            $tz_category_ids = array();
            foreach($tz_categories as $tz_individual_category) $tz_category_ids[] = $tz_individual_category->term_id;
            $args=array(
                'category__in' => $tz_category_ids,
                'post__not_in' => array($post->ID),
                'showposts'=>$tz_related_number, // Numero di post
                'caller_get_posts'=>1
            );
            $tz_related_posts = new wp_query($args);
            if( $tz_related_posts->have_posts() ) { ?>
                <h3 class="widget-title">Articoli correlati <?php if ($tz_related_message) { ?><span><?php echo ($tz_related_message); ?></span><?php } ?></h3>
                <?php while ($tz_related_posts->have_posts()) {
                    $tz_related_posts->the_post();?>
                <div class="post-container">
                        <?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { /* if post has post thumbnail */ ?>
                            <div class="post-thumb">
                                <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'framework'), get_the_title()); ?>"><?php the_post_thumbnail('thumbnail-related'); /* post thumbnail settings configured in functions.php */ ?></a>
                            </div>
                        <?php } ?>
                </div>
                <?php
                }
            }
        }
        $post = $backup; 
        wp_reset_query(); // Resetta la query SQL ottimizzando la memoria
        ?>
    </div>
    and in the single page

    <?php include( TEMPLATEPATH . '/includes/related-posts.php' ); ?>

  2. #2
    chipbennett's Avatar
    chipbennett is offline WordPress Legend
    Join Date
    Feb 2009
    Location
    St. Louis, MO
    Posts
    1,997

    Default

    From the Plugin's description:
    This plugin will add related posts thumbnails after the post. Plugin allows to customize thumbnail sizes, display settings and type of relation.

    By default it uses generated by WordPress thumbnail for the first image appeared in the post, that was uploaded on the server with sizes as set in Media settings. You can select between 'thumbnail' and 'medium' size options. In addition if your theme supports Post Thumbnails feature introduced in WordPress 2.9 you can specify custom thumbnail size. You can also specify post custom field name to be used as thumbnails source.

    Thumbnails are arranged in columns under the post with related posts title/excerpt under each post thumbnail. Colors of background, border, text, text sizes, background on mouse over, title and excerpt length can be customized. See screenshot.

    You can specify number of related posts to display, start date, categories to show on and to include, top text, style settings, default image URL. You can select type of relation - categories, tags, categories and tags or just random. You can specify where to display related posts - choose page type (main or single) and select categories. You can turn off automatic appending to the end of post and use <?php get_related_posts_thumbnails(); ?> php tag in the Loop of your theme. Related Posts thumbnails sidebar widget is also available. You can use [related-posts-thumbnails] shortcode in the post body.
    It looks like all you should need to do is set a "Featured Image" for each post, and you should be good to go.

    Can you describe your problems a bit more?
    WP TurnKey - Turn-Key WordPress installation and maintenance services
    WordPress user since 2005 | @chip_bennett | chipbennett.net | cbnet Plugins

  3. #3
    surferbloggy is offline Hello World
    Join Date
    May 2010
    Posts
    45

    Default

    I've set the custom field THUMB with the url of the image but it crop the image it doesn't resize it


    neither the script from my theme i've posted above works

    i need to resize the image, but i don't know how to do, could you tell me the steps i must do for this or suggest me a plugin tha do that, thank you for help
    Last edited by surferbloggy; 04-08-2011 at 02:55 PM.

  4. #4
    chipbennett's Avatar
    chipbennett is offline WordPress Legend
    Join Date
    Feb 2009
    Location
    St. Louis, MO
    Posts
    1,997

    Default

    The Plugin supports using the core Post Thumbnail functionality. Why are you bothering with the custom field option?
    WP TurnKey - Turn-Key WordPress installation and maintenance services
    WordPress user since 2005 | @chip_bennett | chipbennett.net | cbnet Plugins

  5. #5
    surferbloggy is offline Hello World
    Join Date
    May 2010
    Posts
    45

    Default

    thank you, if i choose post thumbnails instead of custom field and I set the featured images it works but i want to add the url and not to upload another time the image but if i add the url in the second tab ( url) it doesn't add me the featured image instead if I go to the media library tab there are a big numbers of images i don't find the right one how could i do to add only the url as featured image

    i want to copy and past the url from the first image

    <img class="alignnone" title="http://www.mysite.it/wp-content/uploads/2011/03/IMG_5706.jpg" src="http://www.mysite.it/wp-content/uploads/2011/03/IMG_5706.jpg" alt="" width="450" height="675" />

    if i upload the image as featured image it works but it doesn't work if i add the url how could i do??
    Last edited by surferbloggy; 04-08-2011 at 03:45 PM.

  6. #6
    surferbloggy is offline Hello World
    Join Date
    May 2010
    Posts
    45

    Default

    the problem is there are thousands of images and they are in another site this is why i need to add the url

    in the media library i don't find all the images I don't know what to do

  7. #7
    surferbloggy is offline Hello World
    Join Date
    May 2010
    Posts
    45

    Default

    is there a way to add images to media library via ftp, i've added to uploads folder inside wp-content but there aren't all in the media library

  8. #8
    surferbloggy is offline Hello World
    Join Date
    May 2010
    Posts
    45

    Default

    in uploads folder there are 3 images the original the 233x300 and the 150x150, how i could grab only the little one automatically is ther a plugin??

  9. #9
    surferbloggy is offline Hello World
    Join Date
    May 2010
    Posts
    45

    Default

    if i upload the image as featured image it add duble

  10. #10
    chipbennett's Avatar
    chipbennett is offline WordPress Legend
    Join Date
    Feb 2009
    Location
    St. Louis, MO
    Posts
    1,997

    Default

    If you've added a bunch of images to the /wp-content/uploads directory via FTP, trying using the Add From Server Plugin to add them to the Media Manager.
    WP TurnKey - Turn-Key WordPress installation and maintenance services
    WordPress user since 2005 | @chip_bennett | chipbennett.net | cbnet Plugins

Page 1 of 2 12 LastLast

Posting Permissions

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