Posts/Thumbnails Questions

Viewing 5 posts - 1 through 5 (of 5 total)
  • #20687
    otherwhirl
    Participant

    Hi,
    I have installed the WP Ultimate CSV plugin.
    The goal is to upload .csv files for the purpose of bulk uploading posts to”draft” status and later publishing those posts using Drafts Scheduler plugin.

    After running a few tests all appears to be well. However I am having issues with posts/thumbnails not showing in my posts.

    I should mention that I am hotlinking my images from another site (Tumblr). When I use an autoblog plugin I have no issues, but for some reason or another I am not seeing the post/thumbnails.

    The plugin’s FAQ mentions the following:

    http://codex.wordpress.org/Function_Reference/the_post_thumbnail

    Thumbnail Sizes

    The default image sizes of WordPress are “thumbnail”, “medium”, “large” and “full” (the size of the image you uploaded). These image sizes can be configured in the WordPress Administration Media panel under Settings > Media. This is how you can use these default sizes with the_post_thumbnail():

    the_post_thumbnail(); // without parameter -> ‘post-thumbnail’

    the_post_thumbnail( ‘thumbnail’ ); // Thumbnail (default 150px x 150px max)
    the_post_thumbnail( ‘medium’ ); // Medium resolution (default 300px x 300px max)
    the_post_thumbnail( ‘large’ ); // Large resolution (default 640px x 640px max)
    the_post_thumbnail( ‘full’ ); // Full resolution (original size uploaded)

    the_post_thumbnail( array(100, 100) ); // Other resolutions

    Register new image sizes for Post Thumbnails with: add_image_size().
    To set the default size for Post Thumbnails see: set_post_thumbnail_size().
    Post Thumbnail Linking to the Post Permalink

    Note: Don’t use these two examples together in the same Theme.

    example 1. To link Post Thumbnails to the Post Permalink in a specific loop, use the following within your Theme’s template files:

    <?php if ( has_post_thumbnail() ) : ?>
    ” title=”<?php the_title_attribute(); ?>”>
    <?php the_post_thumbnail(); ?>

    <?php endif; ?>

    example 2. To link all Post Thumbnails on your website to the Post Permalink, put this in the current Theme’s functions.php file:

    add_filter( ‘post_thumbnail_html’, ‘my_post_image_html’, 10, 3 );

    function my_post_image_html( $html, $post_id, $post_image_id ) {
    $html = ‘‘ . $html . ‘‘;
    return $

    }

    Post Thumbnail Linking to Large Image Size

    This example links to the “large” Post Thumbnail image size and must be used within The Loop.

    <?php
    if ( has_post_thumbnail() ) {
    $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), ‘large’ );
    echo ‘‘;
    the_post_thumbnail( ‘thumbnail’ );
    echo ‘
    ‘;
    }
    ?>

    Essential my previous posts were the original size so technically there isn’t really a thumbnail per se,but rather the actual full size of the image in the post.

    So, my questions are:
    1. Is the Pinboard theme equipped to do this by default? I suspect so, but again when using the WP Ultimate CSV plugin hotlinked images don’t show-up in the blogroll like the one’s do from using my autoblogging plugin.

    2. How can I fix this so that hotlinked images show as full images?

    3. Which of the options stated above should I choose to accomplish this?

    Thanks!

    #20708
    otherwhirl
    Participant

    Nevermind…

    #20887
    Daniel Tara
    Keymaster

    Pinboard and likely no other theme can do this. Post thumbnails are WordPress core functionality and they rely on images uploaded to the media library and having an assigned ID. What you can do is either import those images to your media library or use the wp_get_attachment_image_attributes filter to override the thumbnail image src, but in this case you won’t be able to take advantage of image sizes.

    #21071
    otherwhirl
    Participant

    How can i make all my thumbnails the same size? Is it possible via CSS?

    #21092
    Daniel Tara
    Keymaster

    All thumbnails have the wp-post-image class so you could make all thumbnails the same size with CSS like this:

    .wp-post-image {
    	width: 300px;
    	height: 200px;
    }
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.