Skip to content

Instantly share code, notes, and snippets.

@brandondove
Created September 14, 2010 16:53
Show Gist options
  • Save brandondove/579345 to your computer and use it in GitHub Desktop.
Save brandondove/579345 to your computer and use it in GitHub Desktop.
<?php
shopp( 'catalog', 'catalog-products', 'load=true' );
if ( shopp( 'catalog', 'has-categories' ) ) :
while ( shopp( 'catalog', 'categories' ) ) :
shopp( 'catalog', 'category', 'slug='.shopp( 'category', 'slug', 'return=true' ) );
endwhile;
else :
echo "no categories yet.";
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment