Skip Navigation

[Resolved] Display Post Feature Image in Views Posts Grid

This support ticket is created 5 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Ray Mitchell 5 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#1371663

Tell us what you are trying to do?
Find a way to display the Post Featured Image as a background image in a posts grid created using Toolset Views
Is there any documentation that you are following?
Can't find any to follow
Is there a similar example that we can see?

What is the link to your site?
Again, unfortunately, the dev site is on my local host 🙁

#1371673

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ray,

Are you constructing this grid with views ?

If so then you should be able to provide the background image using the shortcode.

Example

<div style: background-image: url("[wpv-post-featured-image output='url']");

</div>

This should allow you to have your background image be the featured image.

Thanks,
Shane

#1372329

Hey Shane!
That's not working for me, even when I adjust the HTML and correct the format. Actually, what I really don't understand is why your HTML is formatted the way it is in your example.

COuld/would you make a working example in Views and either teach me or share a screenshot as showing how you get the post featured image to work as a background image?

#1372411

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ray,

Would it be possible for me to gain access to the site where you are working on this to setup the example?

The private fields have been enabled for your next response.

Also please let me know the page where you are working on this.

Thanks,
Shane

#1372481

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ray,

Perhaps I can explain a little better.

What I am using is an inline style for the element


<div style=" background-image: url('[wpv-post-featured-image output='url']');"
 
</div>


I am using the post image to provide the image for the background. The above should work, I realised that my syntax was incorrect but this should now work.

It should be noted that this will only work if you are using a view or a content template.

Please try and let me know.

Thanks,
Shane

#1375941

My issue is resolved now. Thank you!