Already searched on here and couldn’t find question so forgive me if it’s been asked. I’m trying to use dynamic images on a homepage so my client can maintain the images. I’ve seen tutorials where one person uses post_thumbnails while another uses custom fields. Do I need to create a post for each image and display post_thumbnail on homepage? Or is it better to use custom fields for one post to display multiple images?
Reference:
the_post_thumbnail()
http://ontwik.com/wordpress/creating-a-wordpress-theme-part-1/
get_post_custom()
http://ontwik.com/web-design/how-to-design-a-portfolio-site-part-2/
If your page is a portfolio index, where each image is meant to relate to a post or page, then post thumbnails would be the way to go.
If your page is simply a gallery page, and the images don’t relate to any content beyond that page, then the best method would be to upload images as attachments to that page and output them in your template with get_posts.
better is the_post_thumbnail();
custom fields were used while thumbnail feature was not introduced.