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 web developer specializing in developing websites for small to medium business, and from simple blog to a multi-level online shop on Wordpress, Joomla and other CMS. I develop responsive websites using the most current technologies in development sites. My previous work experience provided me with self-discipline, perseverance, thinking outside the box, and leadership skills that allow me to effectively communicate with others to achieve our goals. My clients are always 100% satisfied. I am a fast learner. I am one of those who enjoys challenges and thrives in a fast paced, goal oriented environment. Currently have experience working with PHP, HTML, CSS, JavaScript, jQuery, Wordpress, Drupal, Joomla.

Leave A Comment