• I’ve read through template-tags.php, however for me it’s still not clear what is needed. I’ve tried this,

    get_post_meta(get_the_ID(), 'hero-image', true);

    and

    wp_get_attachment_image_src(get_the_ID(),'hero-image');

    with no luck. Thanks in advance for dealing with my question. 🙂

  • The topic ‘Sample template code?’ is closed to new replies.