Post Thumbs Revisited : problem
-
Ok i’m tryin to do somethin and i’m pretty new to those things so i’m gonna try to be clear :
Actually i have a (left) sidebar, and there is a category list. So you can click on one of the listed categories and the post appears (at the right)… no surprise ok.
Now what i would like is when you click on one categories you have a list of thumbnails that appear at the right (where the posts appeared previsouly). Then you click on one of the thumbs – each one representing one post – and then ‘bang’ you have your post.
Ok so i had made some research and now i know i can use Post Thumb for that (i installed it) and i realise i have to change the code in my “category.php’ file.
So i erased most of the code there and found some code to copy/past (yes i can’t code myself sorry) and it smells good but nothing really happens when i click on a catgory of my sidebar : only small black squares appears and no thumbs are beeing created in the server (and i don’t have error messages in my plugin option) so now i show you the code in the hope someone can help me solve this :
[in category.php]
<!-- begin category --> <?php get_header(); ?> <div id="container" > <?php get_sidebar(); ?> <?php $posts = get_posts('numberposts=100&order=ASC&orderby=post_title'); foreach($posts as $post) : setup_postdata($post); $post_link = get_thumb() ; if ( !empty($post_link) ) { ?><a title="<?php the_title(); ?>" href="<?php the_permalink(); ?>" class="highlight"><?php echo $post_link; ?></a><?php } endforeach;?> <!-- end cat -->
- The topic ‘Post Thumbs Revisited : problem’ is closed to new replies.