Home › Forums › Front-end Issues › custom field applied to "page" not seen in archive-page › Reply To: custom field applied to "page" not seen in archive-page
@plinth Hi, This is what I have in my code today :
$bgimg = get_field('bg_img');
if(is_woocommerce()){
$bgimg = get_field('bg_img', 75);
}
So as time passed, I guess the is_woocommerce() replace the is_archive(MY-ARCHIVE-ID) and cehck if I’m on a woocommerce page.
Tell me if it solve your issue.
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.