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