It looks like you’re using a custom plugin. Is that the case?
Anyway for the line:
<?php echo get_post_meta($post->ID, 'banner_image', true); ?>
Why aren’t you using something like:
<img src="https://wordpress.stackexchange.com/questions/21729/<?php bloginfo("template_url'); ?>/images/<?php echo get_post_meta($post->ID, 'banner_image', true); ?>"/>
Another way to debug is to echo the post ID to the screen and see if it is indeed 49. Let us know what’s going on.
Related Posts:
- Move from old custom field to new post_thumbnails
- Is there a hook / action that is triggered when adding or removing a post thumbnail?
- How can I migrate all of my custom field thumbnails to the built-in post featured image?
- automatically set “Featured Image” the same as the og:i that is set in a custom field
- Adding a custom field or metabox to the post-thumbnail widget?
- Deleted pages showing up when querying for child pages
- Add url from Custom Field as ‘Featured Image’. Code not working
- For homepage images (for small business website), is it better to use custom fields or post_thumbnail?
- How to mass update custom fields for more than 20k posts
- how to make nsfw post with thumbanil
- Can I use a Custom Field as the Featured Image URL?
- Getting the Featured image URL and inserting it as Custom Field on Post update / publish
- User customising position of WordPress Featured Image
- Set featured image from custom field URL
- Custom field as featured image caption
- WP Insert post with post_thumbnail
- Custom field image to Featured Image
- Selectively hiding or allowing thumbnails of featured images on front page
- use custom field value as featured image
- Can you generate a featured image from two images from custom fields?
- Use a different catalog image than the featured image
- Automatically set the_post_thumbnail to Custom Field Value
- Related post thumbnail not showing up
- Post thumbnail size for custom field only
- How to mark a image attachment as background image?
- Show/Hide Featured Image or replace it with custom field [closed]
- Crop custom image size vs actual size
- Individual Widgets per Page
- How to add add_meta_box to specific Page Template?
- Apply the_content filter to a custom field with multiple values
- Meta Query with AND & OR?
- How to get users by a custom field / by user meta data?
- Auto sort the wp-admin post list by a meta key
- Adding another state (spam, reject, approve) to wordpress comments?
- Filter archive.php by custom meta
- How do I search an array stored in a custom-field using WP_Query?
- Get updated meta data after save_post hook
- Custom text-only header
- Show User Their Password
- TinyMCE in Custom Metabox not loaded after upgrading from WP 3.1.4 to WP 3.2
- How to reload the role specific registration form on validation errors?
- Currency (price) formating on custom fields
- Adding Custom Text Area to WooCommerce Product
- Gravity Forms: Create fields programmatically
- Get multiple custom field values in a $wpdb query [duplicate]
- add meta box using function.php
- Order by value in serialized custom field
- Custom image sizes for custom field media uploads
- converting custom field date format
- Buddypress Add unserialized Profile Fields in Members Loop [closed]
- Add Paypal Button programmatically
- How do I use wp_query for WordPress search?
- Conditionally hide or show woocommerce product variation in fontend by custom field
- custom meta box text field: how to limit to alpha or numeric only
- Create an Array of Specific Custom Post Meta
- Possible to add a meta field for css attribute to the editor Advanced panel?
- Excluding Specific Fields from Profile Builder Registration Form
- Add image to menu item with ACF
- How to create a shortcode to print specific values stored in a post meta array?
- How to add upload video option in wordpress for user?
- Adding auto-complete to custom gravity field not working
- Set post to unpublished after one week depending on condition
- Search in Archive Pages by subcategory, tag, custom field and year
- Custom WP_Query for WordPress Search Results with meta_query
- Change order of posts
- Meta Query And/Or
- URL Rewrite fires when retrieving a custom value?
- How to store post meta in an array
- Efficiently sort only certain categories by custom field
- Set checkbox as checked by default in a metabox
- ACF form edit front end post title does not change permalink
- How to list Category list in ACF Pro’s Select Field to choose from [closed]
- Display custom field & value correctly on page
- Copy price categories to custom field
- Sanitize user input fields before wp_insert_post
- Use Advanced Custom Fields – replace line of code that hardcodes the tag into the template
- Increment user meta data by 1 each time a page is visited
- Advanced Custom Fields and Post Meta Fields Relation
- Can’t Output get_post_meta?
- KEY and VALUE custom field issue
- Stripping and/or altering the content of a custom field (video URL)
- Custom field outside the loop and inside an array
- Display Additional Info
- How to get data from user meta custom fields created with acf-pro plugin?
- Add link to wordpress field data
- Adding text box with add_meta_box
- Save Taxonomy of Post via custom Taxonomy Select Dropdown
- (woocommerce) How to get product id form order id & then retrieve custom meta linked to product?
- Is it possible to manage Multiple Custom Fields with Some Relations
- Retrieving and inserting data in custom fields
- How to add custom fields to images for image source text and URL
- RSS Feed in Custom Field
- List custom field values in alphabetical order without repetition from the current category?
- Incorrect data after modifying post using backlink from wp_die
- How can I duplicate “Add Custom Field” with just JavaScript?
- How can I display only the post titles from a selected category in columns?
- Show or hide custom fields by user’s role [frontend]
- add multiple values (array) to post meta_input
- Assign class to Drop Down Selections in WooCommerce Products Custom Fields
- Archive for custom fields?