You want to use the Featured Post Thumbnail:
http://wpcanyon.com/tutorials/how-to-use-the-post-thumbnail-feature-in-wordpress-2-9/
http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/
http://codex.wordpress.org/Function_Reference/the_post_thumbnail
In your functions.php, define an image size with add_image_size(), then display it in the footer like this:
the_post_thumbnail('footer-image');
Keep all of the loop inside of your main template file and do not split it across multiple files. That’s really messy, and as you’ve figured out, very prone to error.
Related Posts:
- Get Meta from Custom Field of Image URL
- Show image if author meta (profile fields) exists outside loop
- Interrogate a page within a loop to check template type or custom meta data (Pages vs Posts)
- Remove Dimension from wp_get_attachment_image
- Having different sidebar content for MANY pages?
- Change wp_get_attachment_image attributes (src and srcset) on specific custom field
- How do I make a custom field choose an image?
- Extend WP Customizer to make multiple image selection possible
- Add multiple images to a page sidebar
- Order posts by custom field and if custom field is empty return remaining posts
- Display thumbnail from custom field
- Add custom field to image editor
- Display info from custom fields in all images’ HTML
- Calling Specific Pages with wp query Part II
- Loop through two different sets of custom fields
- automatically set “Featured Image” the same as the og:i that is set in a custom field
- copy attachments to another post type and change attachment url
- limit amount of photos uploaded per cpt post
- How do I read the value of a custom field of the page?
- Advice needed for importing custom field data and database structure
- Metabox with multiple fields added by user and upload box
- Add WYSIWYG to Image Description field
- How do I exclude posts by custom field value?
- Echo values from custom field outside loop php
- Upcoming Event: How do I sort database by custom date field, but ignore past dates?
- Calling custom fields for pages (not posts)
- Duplicate posts being displayed when querying Custom Fields
- Add url from Custom Field as ‘Featured Image’. Code not working
- Loop to display random posts only if a custom field matches category
- How can I show custom fields in the loop only to specific user roles?
- get_posts that match a user-specified value on a page
- How to display multiple images in custom field
- Accessing loop functions (e.g the_title or the_content) from post ID
- How to add image attachment to post from a single meta key (Woocommerce)
- Exclude images uploaded via meta boxes from WordPress gallery
- How to add the image URL from an external RSS feed and insert into a custom field?
- Limit the number of acf content when displaying in post loop [closed]
- Add new image block, set default class name and update it using Javascript
- Better way to save image in custom field
- How do I add an image upload, custom field to a WooCommerce product?
- Is there a better way to list all database terms alphabetically?
- Change the main loop WordPress impact on the server?
- custom-meta-box checkboxes from loop won’t save
- How to show a post if was published less than two hours ago?
- List users by sum of all their posts’ custom field values
- Limits, not all post are showen when querying for posts by view count
- Custom fields attached to a page template only show on edit screen when page is saved
- For homepage images (for small business website), is it better to use custom fields or post_thumbnail?
- Select multiple images from custom field
- Custom Fields – How to create a list from multi-line entries of a single value
- remove initial wysiwyg editor from cms page edit
- how to make nsfw post with thumbanil
- Custom Query based on custom field of a single post
- Efficiently sort only certain categories by custom field
- Can I access a post meta field before the loop?
- Get image url using image id
- Hide text if one custom field out of two is empty [closed]
- Can’t query by meta_key
- Convert attachment ID into url?
- How to display a product features dynamically with icons?
- How do you output an unknown number of images in a custom post type with desired markup?
- ul list with only as many li’s as filled custom fields
- Custom field as featured image caption
- Loop through incrementing custom fields
- do_shortcode close
- Search Results Page – Displaying Custom Meta Fields
- Display a different image for each page with editor
- Collect Data from NEXT item while in loop
- Image upload and path to custom field
- How to get custom image field of specific post id
- How do I include a template file while allowing it to render its own dynamic content added via custom box?
- How to show content of custom fields in search results?
- Custom field outside the loop and inside an array
- Selectively hiding or allowing thumbnails of featured images on front page
- Display metabox title for custom fields with values
- wp_get_attachment_image_src() with advanced custom fields returning empty
- use custom field value as post category in loop
- Unable to select image with custom field
- Users uploaded image and matching an id or taxonomy
- Filter or order based on custom field
- Compare ACF date field (if exists) and post date and order DESC
- show a specific metabox dependent on the page template
- What am I missing in this Code Block?
- get_field values for each post on home page using wp_add_inline_style
- Adding Facebook’s image and meta description retrieval capabilities to a WordPress post
- Show image depending on the number in the custom fields
- User Filter Options on Archive Page
- Custom meta boxes – add php code inside?
- get wordpress post loop by meta box date
- Outputting custom field on home.php not outside of blog list
- How to delete attachments associated with custom field type when post property changes? [closed]
- Load one page with parent and child pages
- Use a different catalog image than the featured image
- How to add custom fields to images for image source text and URL
- Counting number of images from loop
- Page template is missing fields or is invalid when I updating the template
- Metabox value for post loop?
- Append custom field items to content from plugin
- Get meta value when the page is a blog archive
- Get first URL from custom field, download and set as featured image on post publish