Last active
September 30, 2015 19:48
-
-
Save jameskoster/1852475 to your computer and use it in GitHub Desktop.
WooCommerce - Allow shortcodes in product excerpts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!function_exists('woocommerce_template_single_excerpt')) { | |
function woocommerce_template_single_excerpt( $post ) { | |
global $post; | |
if ($post->post_excerpt) echo '<div itemprop="description">' . do_shortcode(wpautop(wptexturize($post->post_excerpt))) . '</div>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment