Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter pixelfight

    (@pixelfight)

    Actually this is the plugin that I am using.

    https://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.

    Thread Starter pixelfight

    (@pixelfight)

    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; ?>

    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Yapb to create thumbnails for all posts’ is closed to new replies.