How to call woocommerce_template_single_excerpt to display excerpt in slider
-
Hello,
I am trying to add the product excerpt (I am using woocommerce) onto a product slider (using WooCommerce Product Slider Pro). I have been able to insert it into the category page using the code provided here:
Please note my Short Description Excerpt uses ACF Custom Fields. I would now like to add it to my slider but not sure how to call the woocommerce_template_single_excerpt to display excerpt.
This is the section of the code that i want to add the code to (this is the standard slider code):
//display excerpt
if($wa_wps_query_posts_display_excerpt==’1′) {
$slider_gallery.= ‘<div style=”color:’.$wa_wps_query_font_colour.’;” class=”wa_wps_foo_con” id=”wa_wpsjj_foo_con’.$id.'”>’.$this->wa_wps_clean($description, $word_imit).'</div>’;
}I am not a coder but have been able to get most other things working on wordpress but am hoping someone can help me on how to do this as the description displayed by the woocommerce_template_single_excerpt is exactly what i need so i am hoping i can just use it here somehow.
Thanks in advance,
Andrew
- The topic ‘How to call woocommerce_template_single_excerpt to display excerpt in slider’ is closed to new replies.