Zen Follower
- Join Date:
- Jul 2011
- Posts:
- 106
- Plugin Contributions:
- 0
Need to only show in one category
Hi All,
I am needing to only show a specific fields in a specific category on my product listings page, I have played around a bit but without any luck.
I have been trying a bit with:
<?php
if ($categories_name = 'Washing Machines') { ?>
<div>show this thing</div>
<?php } elseif ($categories_name = 'Fridges') { ?>
<div>show that thing</div>
<?php } else { ?>
<div>Don't show anything</div>
<?php } ?>
Any help would be greatly appreciated.
Jay