WordPress.org

Ready to get started?Download WordPress

Forums

Post Thumbs Revisited : problem (3 posts)

  1. nlex
    Member
    Posted 6 years ago #

    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 -->
  2. nlex
    Member
    Posted 6 years ago #

    is there a way to check if the plugin is well installed and works ?

  3. nlex
    Member
    Posted 6 years ago #

    i hae a feeling what i'm tryin to do is not so complicated, anyone got an idea of the code ?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.