• Hello,

    I am using a very nice plugin to create a photoblog: YAPB
    The issue with this plugin is the use of thumbnails, to restrict thumbnails in a sidebar to a category being displayed is quite difficult.

    Although I was able to figure this part out, my current problem is:
    when a thumbnail of a category is clicked on, the other thumbnails under that category magically disappear.

    I have set up the code to be dynamic so as many categories/subcategories can be added with no need to update the code.
    I’m really really close to getting this done….
    I just need help from someone who is more capable in php then me!

    <?php
    $categories=get_categories('');
    foreach ($categories as $cat){
        if (is_category($cat->cat_ID)) {
    		query_posts('cat='.$cat->cat_ID.'&showposts=-1');
    	  while (have_posts()) : the_post();?>
             <?php  if ($post->image): ?>
    <li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo $post->image->getThumbnailHref(array('w=100','fltr[]=usm|30|0.5|3')) ?>" alt="<?php the_title() ?>" title="<?php the_title() ?>" width="100"/></a> </li>
    <?php endif; endwhile;
        }
    }
    ?>

    please, any thoughts, feedback is greatly appreciated!

    thanks,
    pvfe

The topic ‘yapb plugin – thumbnail and category issue’ is closed to new replies.