I can’t figure out why my page is displaying my content twice. I have the limit set but it seems to ignore that. I am using similar code on another site and it seems to work just fine. I can’t understand why this would have a problem.
My URL structure is: http://www.mysite.com/{cat_url_title}/{url_title}/
Here’s my code:
{if segment_1 != "" AND segment_2 != ""}
{exp:query sql="SELECT cat_id FROM exp_categories WHERE cat_url_title = '{segment_1}'"}
{exp:weblog:entries weblog="store_products" limit="1" url_title="{segment_2}" disable="trackbacks|pagination|member_data" }
<div class="grid_3 alpha productImage">
<a href="#">{prod_image}</a>
</div>
<div class="grid_10 omega">
{title}
</div>
{/exp:weblog:entries}
{/exp:query}
{/if}Any thoughts would be greatly appreciated.
Thanks!