Problem:
The problem here is that the user added their content to the Product Description section of their products and added html to the texts as well.
Solution:
This is happening because the user is using the [wpv-post-excerpt] shortcode. This is actually stripping the html from the excerpt area.
A custom shortcode was used to resolve this.
Add this to your custom code in Toolset -> Settings -> Custom Code and activate it.
function wp_woo_prod_description() { $description = "Woocommerce is not active"; if ( class_exists( 'WooCommerce' ) ) { $product = wc_get_product( get_the_ID() ); $description = $product->get_short_description(); } return $description; } add_shortcode('wp_woo_prod_description','wp_woo_prod_description' );
Then add this to your template [wp_woo_prod_description]
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Our next available supporter will start replying to tickets in about 1.49 hours from now. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
- | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 14:00 – 18:00 | 13:00 – 18:00 | - |
Supporter timezone: America/Jamaica (GMT-05:00)
This topic contains 8 replies, has 2 voices.
Last updated by 5 years, 10 months ago.
Assisted by: Shane.