Forums

[resolved] Yapb to create thumbnails for all posts (4 posts)

  1. pixelfight
    Member
    Posted 3 years ago #

    I am using a plugin called Yapb (Yet another photo blog). I have everything set up, except the archive page where all the thumbnails are generated.

    I am using a page template, but am not able to generate any thumbnails. Can anyone help?

    http://photos.chicagosnapshot.com/archives/

  2. pixelfight
    Member
    Posted 3 years ago #

    Actually this is the plugin that I am using.

    http://johannes.jarolim.com/blog/wordpress/yet-another-photoblog/adapting-templates/#pages

    I followed the directions, but these directions don't work for pages created from page templates.

  3. pixelfight
    Member
    Posted 3 years ago #

    The maker of the plugin got back to me, here is the code that works for me FYI.

    <?php
    $posts = get_posts('numberposts=5');
    foreach($posts as $post) :
    setup_postdata($post);
    ?>
    ...
    <!-- install for yapb thumbails -->
    <?php if (!is_null($image = YapbImage::getInstanceFromDb($post->ID))): ?>

    <img src="<?php echo $image->getThumbnailHref(array('w=90','fltr[]=usm|30|0.5|3')) ?>" width="90" >

    <?php endif ?>
    <!-- install for yapb thumbails -->
    ...
    <?php endforeach; ?>

  4. jkallaher
    Member
    Posted 2 years ago #

    ok but where in the code do i insert this peice of code?

    can someone give me a reference point?
    or does it not matter where iput it?

Topic Closed

This topic has been closed to new replies.

About this Topic