Support » Themes and Templates » Best way to create a list of pages with thumbnails?

  • Hi,

    I’m working on a site for a Theatre company and they would like to have a list of their productions with an image and an excerpt for each. The excerpt would link to a page for that production (and that page would have several subpages for ‘cast and crew” etc.).

    As I’m new to making broad customizations in WordPress, I was wondering what the best way to automate this sort of set up might be? Would a custom field for the image and a custom field for the excerpt for each production be a good way to approach this?

    In addition, I’ll be using the qTranslate plug-in to make the site bilingual (which is why I’m developing in WP 2.9.2) This obviously adds another level of complication.

    Any advice or links to helpful resources would be greatly appreciated.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You could use the_post_thumbnail to upload the pictures and create a template file pulling these images in a specified size ie:

    <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail(array(200,160)); } ?>

    Then pull the linked excerpt by using

    <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_excerpt(); ?></a>

    and wrap it all in a div so you can easily style it with css. Or you could create a column layout with this information.

    Disclaimer: I am new to php and wordpress myself, so there are probably better ways to do this 🙂

    Thanks for responding.

    From what I can gather the code you’ve suggested is aimed at posts. Am I right?

    The only way I can figure out to make the productions have the various sublinks that they need is to make each production a page, with a number of child pages. There might be a better way (and I am open to suggestions) but with my current plan I think I’m stuck to using pages rather than posts.


    Perhaps this article could be helpful to you?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Best way to create a list of pages with thumbnails?’ is closed to new replies.