Forums

post image plugin in sidebar (3 posts)

  1. noyz319
    Member
    Posted 5 years ago #

    Hi, i can't figure out how to get Kaf's Post Image plugin (http://guff.szub.net/2006/02/09/post-image) to work in my sidebar. I can get it to show the post titles and linking the permalinks properly on every page, but the thumbnails only show the default image.

    There is one time when the proper thumbnails do show though, and that is when i'm viewing a post or archive for the category they are in (category 15 in my case).

    Here is my code for the sidebar loop:

    <?php
    $thumbs = new WP_Query("cat=15&showposts=4");
    while($thumbs->have_posts()) : $thumbs->the_post(); ?>
    <div id="theblock">
    <div class="picbox"><a href="<?php the_permalink(); ?>"><img src="<?php post_image('http://thewebsite.com/defaultimage.jpg', true, false); ?>" alt="<?php the_title(); ?>"/></a></div>
    <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
    <small><?php the_time('F j, Y'); ?></small>
    </div>
    <?php endwhile; ?>

    Any help would be extremely appreciated, i've been stumped on this one for over a week now.

  2. noyz319
    Member
    Posted 5 years ago #

    Anybody? Pretty please!

  3. noyz319
    Member
    Posted 5 years ago #

    One other problem, besides just showing the default image as the thumb everywhere; while on the homepage it doesn't even get that far, it just shows broken images (although again the titles and permalinks are all correct, just a thumbnail problem).

Topic Closed

This topic has been closed to new replies.

About this Topic