Home › Forums › General Issues › Woo Commerce Banner Image › Reply To: Woo Commerce Banner Image
The store page is showing an archive of, whatever you have WC to show own the archive. The page is really just a placeholder that when that page is loaded WC intercepts the main query and alters it so that it is no longer for the page but for an archive.
You need to provide a post ID value when getting the fields on this page. First you need to figure out how to detect that this is the page being shown. It may still be in the main queried object.
Try
$queried_object = get_queried_object();
echo '<pre>'; print_r($queried_object); echo '</pre>';
If this works then you can get the post ID from there.
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.