• Resolved sroskylos

    (@sroskylo1)


    I create an page taxonomy-pwb-brand.php and i was output the description with the following code

    <?php
          /**
           * woocommerce_archive_description hook.
           *
           * @hooked woocommerce_taxonomy_archive_description - 10
           * @hooked woocommerce_product_archive_description - 10
           */
          do_action( 'woocommerce_archive_description' );
    
        ?>

    In version 1.4.5 and 1.5 does not work and i must rollback to 1.4.4 to show up the description.

    Any help?

    How can i output the brand description?

    Thank you for this awesome plugin ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sroskylos

    (@sroskylo1)

    I figured out with a little mod from this threat.

    Add the code on function.php

    //Brand description shortcode
    function custom_pwb_brand_info() {
    
      //show brand description
              if( is_product_taxonomy() ){
        $brands = wp_get_post_terms( get_the_ID(), 'pwb-brand' );
        foreach( $brands as $brand ) {
          echo '<p>'.$brand->description.'</p>';
        }
      }
    
    }
    add_shortcode( 'custom_pwb_brand_info', 'custom_pwb_brand_info' );

    Place in brand custom page the shortcode
    [custom_pwb_brand_info]

    Hi, I’ve tried to add this code but I receive an error back.
    My brand description isn’t showing anywhere, please help

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Brands Description’ is closed to new replies.