• I am currently using the aspiremagazine theme on my blog at https://fierth.com/a Please take a look . The theme automatically generates a thumbnail from the first image of the post and places it to on the left side of the text box ; it seems that when the post displays it shows the same image , in thumbnail version in the content section so te same image appears twice. I dnt mind tha the image appears twice but is there a way to atleast show one f them at regular size or only once per post ? Please let me know if there is any fiurther info o can provide

    Thanks so much for your help !!

    Brian

Viewing 5 replies - 1 through 5 (of 5 total)
  • The image is only showing once per post – on each page. don’t assume that everyone who views the single post page will have arrived there via one of your archive pages. Google, for example, could drop a visitor straight onto the single post page.

    As for having different image size, you control what size of image is shown in the single post page when you insert it.

    Thread Starter brianmills

    (@brianmills)

    I can sontrol the single post but it shows up on the main page as a double thumbnail , it just doesn’t look right that way so i’d like to be have it show up in two different sizes so it doesnt look like an error as it currently does . This issue also effects the share/save link that was at the bottom of the main page post. I remved it to only show in the single post as it was thimbnailing and smooshing a 256×24 image into the 135 x135 space

    Ps thank you very for your help yesterday as well with the ‘the content – the excerpt ‘ problem o was having as u can see o fixed that to fond this error .

    Thread Starter brianmills

    (@brianmills)

    T is only showing once per page but the problem is on the main page

    I think it’s the switch from the_excerpt() to the _content() that created this problem. My guess is that the them was originally designed to show a post excerpt along with a thumbnail of the first image associated with that post. That works because the_excerpt strips out all images.

    Now that you’ve switched to the_content(), images aren’t stripped out. And if you have an image above the <--more--> tag, it will be displayed. Along with the original automated thumbnail.

    As I see it, you’ve got 3 options:

    1. Keep all images in posts below the <!--more--tag>.

    2. Switch the_content() back to the_excerpt() and get used to using the Optional Excerpt box on each post to add post teaser text but no images.

    3. Edit index.php to remove the original automated thumbnail code.

    Thread Starter brianmills

    (@brianmills)

    I can’t really tell where that original line to thumbnail it is ; the code I altered was only the line
    <?php the_content( ); ?>. The orginal line was <?php echo dp-clean($post->post-content, 300); ?>

    Can I replace that main page thumbnail with a generic thumbnail for all main page posts easily ?

    <?php get_header(); ?>

    <!– BEGIN content –>
    <div id=”content”>
    <?php
    $tmp_query = $wp_query;
    query_posts(‘cat=’ . get_cat_ID(dp_settings(‘featured’)));
    if (have_posts()) :
    $first = true;
    while (have_posts()) : the_post();
    ob_start();
    ?>
    <li<?php if ($first) echo ‘ class=”first”‘; ?>>“><?php dp_attachment_image($post->ID, ‘full’, ‘alt=”‘ . $post->post_title . ‘”‘); ?>
    <?php
    $photos .= ob_get_clean();
    ob_start();
    ?>
    <li<?php if ($first) echo ‘ class=”first”‘; ?>>
    <h2>“><?php the_title(); ?></h2>
    <p><?php echo dp_clean($post->post_content, 300); ?></p>
    ” class=”readmore”>Read Full Story

    <?php
    $text .= ob_get_clean();
    $first = false;
    endwhile;
    endif;
    ?>

    <!– begin featured –>
    <div class=”featured”>
    <div class=”thumb”><div class=”b”>
    <ul class=”photo”>
    <?php echo $photos; ?>

    <ul class=”text”>
    <?php echo $text; ?>

    </div></div>
    </div>
    <!– end featured –>

    <?php
    $wp_query = $tmp_query;
    if (have_posts()) :
    while (have_posts()) : the_post();
    $arc_year = get_the_time(‘Y’);
    $arc_month = get_the_time(‘m’);
    $arc_day = get_the_time(‘d’);
    ?>

    <!– begin post –>
    <div class=”post”>
    <div class=”title”>
    <h2>“><?php the_title(); ?></h2>
    <p class=”details”>Posted by: <?php the_author_posts_link(); ?> on “><?php the_time(‘M jS, Y’) ?>
    </p>
    <p class=”comments”><?php comments_popup_link(‘No Comments’, ‘1 Comment’, ‘% Comments’); ?></p>
    </div>

    <div class=”l”>
    “><?php dp_attachment_image($post->ID, ‘thumbnail’, ‘alt=”‘ . $post->post_title . ‘”‘); ?>
    </div>
    <div class=”r”>
    <?php the_content( ); ?>
    <p>“></p>
    </div>

    <div class=”meta”>
    <div class=”tags”>
    Tags: <?php the_tags(”); ?>
    </div>

    <div class=”undercat”>
    Filed Under: <?php the_category(‘, ‘) ?>
    </div>
    </div>

    </div>
    <!– end post –>

    <?php endwhile; else : ?>
    <div class=”notfound”>
    <h2>Not Found</h2>
    <p>Sorry, but you are looking for something that is not here.</p>
    </div>
    <?php endif; ?>

    <!– begin post navigation –>

    <!– END content –>

    </div>
    <?php get_sidebar();

    get_footer(); ?>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Theme thumbnail generation , can it be stopped or altered ?’ is closed to new replies.