1 2 {exp:query sql="SELECT cat_id, cat_name FROM exp_gallery_categories WHERE gallery_id='1' AND parent_id='0' ORDER BY cat_order"} 3 <li><a href="{path=gallery/subcat}{cat_id}">{cat_name}</a></li> 4 {/exp:query}
You need to create an account or log in to post comments to this site.