Hi guys,
I have a page which lists excerpts of content based on their category, this is chosen within the template by checkbox. I have all the content filtering through no problem but need to know how to display a simple "there are no posts available" if the checkbox has not been selected. I have tried the following but it doesn't seem to work .
if (count($child->Travel_escapes)<1) {
echo "<div class='post-content span12'>
<h2 class='error'>There are no posts in this section</h2>
</div>
";
}
Any help would be greatly appreciated,
Melissa