How do I filter by category in Vantage? Display content with PHP If statements?
How do I filter by category in Vantage?
Just wondering how I'd manage to do this. I have several Listing Categories and would like to display a different link at the top of each. Below is an example of what I'm trying to add into archive-listing.php
<?php if (is_category('18')) { ?>
<a class="sharetheapp" style="margin-left:25px;" href="http://bit.ly/1saKA7a" target="_blank"><span style="margin-left:10px; height:50px;">Share the App</span></a>
<?php } ?>
<?php if (is_category('14')) { ?>
<a class="sharetheapp" style="margin-left:25px;" href="http://bit.ly/1k7Z9GD" target="_blank"><span style="margin-left:10px; height:50px;">Share the App</span></a>
<?php } ?>
... and so on.
Currently I don't get an error displaying, but I also don't get anything displaying when I'm on category 14 or 18. Below is a link to category 14.
http://thedan1984.com/websites/check...ity/albany-ny/