Title: Shortcode in Description
Last modified: August 7, 2017

---

# Shortcode in Description

 *  Resolved [edel242](https://wordpress.org/support/users/edel242/)
 * (@edel242)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/shortcode-in-description-2/)
 * Hi Alberto de Vera Sevilla,
    Nice plugin! I would like to insert shortcodes into
   the brand description. Can you do that to me – how expensive?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [titodevera](https://wordpress.org/support/users/titodevera/)
 * (@titodevera)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/shortcode-in-description-2/#post-9388237)
 * Hi edel242!
 * Simply install a plugin like this: [Visual Term Description Editor](https://es.wordpress.org/plugins/visual-term-description-editor/)
   and use your shortcodes into the brand description.
 * 😉
 *  Thread Starter [edel242](https://wordpress.org/support/users/edel242/)
 * (@edel242)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/shortcode-in-description-2/#post-9388450)
 * thanks for the information. Its not run for me: [https://samary.ch/brand/badefee](https://samary.ch/brand/badefee)
 *  Thread Starter [edel242](https://wordpress.org/support/users/edel242/)
 * (@edel242)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/shortcode-in-description-2/#post-9388881)
 * maybe in funktion.php
    `add_filter( '???', 'do_shortcode' );`
 *  [Tharkon](https://wordpress.org/support/users/tharkon/)
 * (@tharkon)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/shortcode-in-description-2/#post-9905499)
 * The effective part of Visual Term Description Editor in this case is the following
   line.
    `add_filter( 'term_description', 'do_shortcode' );`
 * This filter does not work however because it is never being applied.
    I fixed
   the issue myself for my installation by editing the following lines:
 * In `/classes/class-perfect-woocommerce-brands.php`
    line 917: `echo do_shortcode(
   $queried_object->description);`
 * In `/classes/class-pwb-product-tab.php`
    line 45: `<?php if( !empty($brand->description))
   echo '<div>'.do_shortcode($brand->description).'</div>';?>`
 * However, this only lasts until the plug-in gets updated.
    A more permanent solution
   would be:
 * In `/classes/class-perfect-woocommerce-brands.php`
    line 917: `echo apply_filters('
   pwb-brand_description',$queried_object->description);`
 * In `/classes/class-pwb-product-tab.php`
    line 45: `<?php if( !empty($brand->description))
   echo '<div>'. apply_filters('pwb-brand_description',$brand->description).'</div
   >';?>`
 * In `functions.php`
 *     ```
       /* Allow shortcodes in brand pages */
       add_filter( 'pwb-brand_description', 'do_shortcode' );
       ```
   

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Shortcode in Description’ is closed to new replies.

 * ![](https://ps.w.org/perfect-woocommerce-brands/assets/icon-256x256.jpg?rev=2912506)
 * [Perfect Brands for WooCommerce](https://wordpress.org/plugins/perfect-woocommerce-brands/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/perfect-woocommerce-brands/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/perfect-woocommerce-brands/)
 * [Active Topics](https://wordpress.org/support/plugin/perfect-woocommerce-brands/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/perfect-woocommerce-brands/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/perfect-woocommerce-brands/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Tharkon](https://wordpress.org/support/users/tharkon/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/shortcode-in-description-2/#post-9905499)
 * Status: resolved