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

/, Wordpress/How to display a thumbnail of a post with a background image

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.

By |2018-08-31T14:12:17+00:00August 20th, 2017|Useful hooks, Wordpress|0 Comments

About the Author:

I’ve been doing web development, and freelance for more than 4 years, previously worked 5 years in the banking sector, in the department of IT. I am engaged in the development, refinement and technical support sites and online stores developed in these popular CMS like WordPress and Joomla.

Leave A Comment