0

I'm using a shortcode in the woocommerce "Product short description" field. It displays fine on a single product page, but I need it to fire on the archive page as well. On that page, the shortcode appears as just the bracketed text like "[SHORTCODE]."

I've tried adding these to the functions.php file:

add_filter( 'woocommerce_short_description', 'do_shortcode');
add_filter('the_excerpt', 'do_shortcode');

But I still just get "[SHORTCODE]" on the archive page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.