Slideshow image in BP Daily

Hi -

I think my issue is very similar to that at https://premium.wpmudev.org/forums/topic/wrong-feature-images-appears-on-homepage-of-bp-daily.

Essentially, rather than grabbing the first image in of the post's image order for the slideshow image, it seems to be grabbing the last image uploaded to the post. My site is at http://www.northings.com.

I'd like to change the way BP Daily works so that, both for the Slideshow and for the front page columns, it grabs the Featured Image of the post. That way I have much more control over what is displayed on the front page.

Can you let me know the code changes I need to make to the Slideshow and Front Page Column PHP files to make to grab the Featured Image instead?

Many thanks
Marcus

  • marcusjwilson

    Thanks, Tammie -

    For the slidshow to display the featured image, I wasn't sure which section of code to replace with your code above.

    In the featured-slideshow.php file, I have the following code to generate the slideshow image:

    <div class="slideshow-image"><span class="attach-post-image" style="height:250px;display:block;background:url('<?php the_post_image_url($feature_image_display); ?>') center center no-repeat"> </span></div>

    and further on...

    <div class="featured-image attach-post-image" style="height:250px;width:640px;display:block;background:url('<?php the_post_image_url($feature_image_display); ?>') center center no-repeat"></div>

    Is this the code that needs to be replaced in order to choose the Featured image from the post?

    Thanks
    Marcus

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.