Please Help, I’ve created an archive-product.php and in it I have my, <?php woocommerce_content();?>
In the global-top-banner above this, I have my usual php code to call in my theme banner image (using my usual ACF image ID). Works perfectly on all other, page.php, single.php, category.php, etc…
The button to add the picture is showing on the backend on the Store page as its seeing my ACF rule to add to all default pages, and I can obviously select the image I’d like to choose from the media library here.
However I can not find any ACF selector to display the image on this Store page??…
I’ve tried trying to add a;
Template Name: Woo Page – but that doesn’t work – as it doesn’t appear on the Store (backend) to select.
I’ve read that… even though this Store appears as a page it gets converted to a ‘Special Archive’ but I can’t tap into this using Taxonomy = Category or Taxonomy = Prod_Category…
How do I get this image to show on this page please…
(archive-product.php code below)
<!– Main –>
<!– Top Banner –>
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.