following some advice & instructions this is what I am using.
get_post_meta($post_id, $key, $single);
in the subtemplate
<?php $image = get_post_meta($post->ID, 'Image', true); ?>
<img src="<?php echo $image; ?>" alt="image" />
in the page itself
not working? this is a page should the parameters be changed? I checked the codex & got the impression that $post should work as well.
How could I solve this please?
I’m pretty sure capitalization matters.
Your screenshot shows “image” as the key, but your code shows “Image”.
Awesome! Thank you, that was right, it fixed the problem.
Any chance you could take a look at this one http://cdiwwwtest.cdicorp.com/cs & tell me why the thumbnails are not kicking in Please?
I got it working here
the code for invoking them is the same
<?php the_post_thumbnail( 'category-thumb' ); ?>
<a class="readMore" href="<?php the_permalink(); ?>">read more</a>
I think I missed a step early on but can’t figure out what? Even tried to add them by the add media feature in the post.
I don’t see anything obvious in what you provided.
Check the codex page on post thumbnails to make sure you’re doing everything that is recommended: https://codex.wordpress.org/Post_Thumbnails