Blog

How to display a thumbnail of a post with a background image

To display a thumbnail of a post as a background image, it is sufficient to use the following code:

This code gets the URL of the attached image. On an example it looks like this:

The code is basically suitable for entries, pages, products and product categories.

© Copyright 2014 -  vchuy-develop.com. All rights reserved

v.chuy
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.