I’m using Structure so this may be a Structure question, but thought I’d try general support first. I have a directory page that shows a categories menu for various geographic locations. Each category contains a list of people with their website, phone, etc. The list is in a table.
Everything works fine on all the category pages, but on the directory landing page, I can’t figure out how not to show the table headings. I’ve tried a lot of different {if}, {if:else} combinations but nothing’s working. I’m new to EE and a novice with php. Here’s the code I’m using:
{exp:weblog:categories weblog="directory" dynamic="off"}
<a href="?category={category_id}">{category_name}<a>
{/exp:weblog:categories}
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<th scope="col" valign="top">Name</th>
<th scope="col" valign="top">Website</th>
<th scope="col" width="20%" valign="top">Phone</th>
<th scope="col" valign="top">Area Served</th>
<th scope="col" valign="top">Specialty</th>
</tr>
{exp:weblog:entries weblog="directory" category="<?php echo $_GET['category']; ?>" dynamic="off"}
<tr class="{switch="alt|even"}">
<td valign="top">{first_name} {last_name}</td>
<td valign="top">{website}</td>
<td valign="top">{phone}</td>
<td valign="top">{area}</td>
<td valign="top">{specialty}</td>
</tr>
{/exp:weblog:entries}
</table>Any ideas?
Flo