• I cant work this one out for the life of me. The following code works great on my page.php, but cant get the same result on home.php

    <!-- Main component for a primary marketing message or call to action -->
          <?php $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>
          <div class="jumbotron" style="background-image: url('<?php echo $feat_image; ?>');">
            <div class="banner-box"><h1><?php $meta_value = get_post_meta( get_the_ID(), 'meta-text', true ); echo $meta_value; ?></h1></div>
          </div>

    Anyone?

  • The topic ‘Featured image not showing on home.php’ is closed to new replies.