Ok I may be dumb but why is this not working.
I added this line to taxonomy-product.php:
$tracktotal = $wp_query->found_posts;
Now in archive-product.php I expect to be able to use the variable $tracktotal but it’s not working. What am I missing?
- The topic ‘Variable set in taxonomy-product.php not available in archive-product.php’ is closed to new replies.