Skip to content

Instantly share code, notes, and snippets.

@webdev1001
Forked from lmartins/woo-archives.php
Last active August 29, 2015 14:11
Show Gist options
  • Save webdev1001/bf093e8ea6ccbe3461ff to your computer and use it in GitHub Desktop.
Save webdev1001/bf093e8ea6ccbe3461ff to your computer and use it in GitHub Desktop.
/**
* Mostra as categorias associadas ao tema
*/
add_action( 'woocommerce_after_shop_loop_item_title', 'mw_archive_add_theme_category', 5 );
function mw_archive_add_theme_category()
{
global $product;
$out = '<div class="product-categories">';
$out .= strip_tags( $product->get_categories() );
$out .= '</div>';
echo $out;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment