Home › Forums › Front-end Issues › Background Image for element in Category loop › Reply To: Background Image for element in Category loop
Hi!
I´ve made a custom filed for taxonomy term as category. In fact the image input appears correctly in each category and I´ve uploaded images for them.
My problem is that I dont´t find a way to show the images in this part of the code:
echo ‘<div class=”menu_section_parallax” style=”background-image: url(”)”></div>’;
My idea was to put the custom field code in the background-image url
I´ve tried several solutions I found online but anything works, probably because I´ve made syntax errors or maybe because my approach is wrong.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.