Quantcast
Channel: Clan VPS Host » woocommerce
Viewing all articles
Browse latest Browse all 195

Error with Woocommerce short description in category page

$
0
0

This is the code I'm using and it appears to work correctly when log in add_action('woocommerce_after_shop_loop_item_title', 'lk_woocommerce_product_excerpt', 35, 2);if (!function_exists('lk_woocommerce_product_excerpt')) { function lk_woocommerce_product_excerpt() { $content_length = 10; global $post; $content = $post->brief_description; $wordarray = explode(' ', $content, $content_length + 1); if (count($wordarray) > $content_length) : array_pop($wordarray); array_push($wordarray, '…'); $content = implode(' ', $wordarray); $content = … Continue reading Error with Woocommerce short description in category page

The post Error with Woocommerce short description in category page appeared first on Clan VPS Host.


Viewing all articles
Browse latest Browse all 195

Trending Articles