Post Text if Product Category is True
-
I’m trying to make this code work in the ‘related.php’ file:
<?php if ( is_product_category ( ‘industrial’) ) : ?>
<p>All Industrial Products</p>
<?php endif; ?>But it doesn’t return anything. The slug is correct in the naming convention, so I’m not sure why this will not post.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Post Text if Product Category is True’ is closed to new replies.