Conditional Statement for Getting the ad_cat
Please could someone help me. I need a little bit of code and I have been struggling all day with it.
All I need is a simple conditional statement that lets me show a variable message depending on the ad_cat slug.
So I need the php for:
PHP Code:
If this is an ad category with the slug 'electronics' {
echo 'One Thing';
}
else {
echo 'Another Thing';
}
I need to use this on single-ad_listing.php
Many thanks.