pdxsherpa — 2013-07-27T19:37:51-04:00 — #1
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?
force — 2013-07-27T21:00:03-04:00 — #2
I'm pretty sure capitalization matters.
Your screenshot shows "image" as the key, but your code shows "Image".
pdxsherpa — 2013-07-28T00:13:49-04:00 — #3
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.
force — 2013-07-28T20:13:17-04:00 — #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