Just learning WP and I would appreciate your help with this. I have number of custom posts in my wordpress and I need to pull custom filed from each type of post to homepage.
Now first post type have field 'imag1', second type have 'imag2', 3rd, 'imag3' etc. How can I call all those values to be shown in one spot. So I want to say show imag1 or imag2 or imag3 - which ever is related ot current post.
I know how to call one custom field value, works perfectly with:
<?php echo get_post_meta($post->ID, "imag1", true); ?>
But how do I call to show any of above?
Thx a lot good people!