?> <a href="<?php the_permalink(); ?> "> <h3 class="title-prod"><?php the_title(); ?> </h3> </a> <div class="product-excerpt"> <?php rcl_product_excerpt(); ?> </div> <?php echo rcl_get_product_category($post->ID); ?> <?php echo rcl_get_cart_button($post->ID); ?> </div> </div> </div>
function rcl_product_category_excerpt($excerpt) { global $post; $excerpt .= rcl_get_product_category($post->ID); return $excerpt; }
function rcl_product_meta($content) { global $post; if ($post->post_type != 'products') { return $content; } $product_cat = rcl_get_product_category($post->ID); return $product_cat . $content; }