Support is closed now. We shall check all on 20th May 2024.

Premium add-on for Bricks Builder

Add the term’s latest post featured image to the background

You make a terms list with the terms query loop builder and want to add the featured image of the latest post to the container background. In this tutorial, I shall show how you will fetch the featured image of the latest post of a term and add it to the container background.

Terms list with a background image(featured image of the post)

Open the functions.php file of the Bricks child theme or you can put the code into the 3rd party plugin. I make a function get_term_post_featured_image_url (which is returning the image URL) and will use it inside the “echo” dynamic tag.

If you want to view the rest of the content, you need to buy the BricksUltimate add-on. Users of the BricksUltimate will view this content after login.

Log into Your Account

Lost Password?

After adding the code, you will open your page on the builder editor and select your terms loop builder element(where you are making the terms list). Click on the Style -> Background section. Set the background image with the following dynamic tag:

Set featured image of the latest post as a background image
Fills In: 

Leave the first comment

Search Tutorials

Request TutorialsFeatures Request