With WooCommerce Product Vendors you can allow other people to sell their products in your store.
You will probably want to create a custom page for each of them, and this is automatically done by the extension because vendors are taxonomies.
They have a description, a title, and some other options. But the description does not allow to add shortcodes.
Shortcodes are something that helps a lot in the website development and make things a lot quicker.
How to allow to add shortcodes in the product vendor description?
Open your functions.php file located in wp-content/themes/your-theme-name/ and add this code at the end of the file:
This code is really easy to understand, it passes the variable $desc
(the description text) to the WordPress function do_shortcode which executes all the shortcodes contained in it, then returns the executed contents to the plugin which prints it on the page.
Leave a Reply