following some advice & instructions this is what I am using.
in functions.php
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?
thx
D
force
July 28, 2013, 1:00am
2
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
http://cdiwwwtest.cdicorp.com/engineering
the code for invoking them is the same
<div class="span4">
<?php the_post_thumbnail( 'category-thumb' ); ?>
<a class="readMore" href="<?php the_permalink(); ?>">read more</a>
</div>
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.
force
July 29, 2013, 12:13am
4
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