WordPress.org

Ready to get started?Download WordPress

Forums

Inline Thumbnails (3 posts)

  1. echstudios
    Member
    Posted 5 years ago #

    In simple terms, all I need to do is to print an unordered list of thumbnail images which I have created from posts. I want to display a group of 3 of these thumbnails (posts) in a row to it's own page.

    In more specific and complex terms, I have set up a thumbnail image to be created for each of my posts automatically using custom fields. I'm using these to display in a customized Coda Slider which acts as a scrolling selector for each post of just one category. I have it working perfectly, except that the slider will only display 1 post at a time. I've played with the css and code, but it doesn't seem to be a styling issue. I'm pretty sure its the php writing the thumbnails each to their own page.

    Here is the important stuff...

    <div class="scroll">
    			<div class="scrollContainer">
    <?php while (have_posts()) : the_post(); ?>
    				<div class="panel" id="<?=$post->post_name?>">
    
    <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
    <img src="<?php $values = get_post_custom_values("thumb"); echo $values[0]; ?>" alt="<?php the_title(); ?>" class="thumb" />
    </a>
    <?php the_excerpt(); ?>
    
    				</div>
    <?php endwhile;?>
    			</div>
    		</div>

    Any help?

  2. steverydz
    Member
    Posted 5 years ago #

    Heres an article which explains what I think you're asking?

    http://www.greg-wood.co.uk/blog/article/a-nice-little-css-positioning-technique

  3. echstudios
    Member
    Posted 5 years ago #

    Thanks for the link, but unfortunately I don't think it is a styling issue. The php seems to be outputting the thumbnails as if they are separate post (which of course they are), but I need them to be grouped inline on a single page (limit 3 per page).

Topic Closed

This topic has been closed to new replies.

About this Topic