Label shortcode
-
Hi, I want to use label in custom grid layout. Is it possible to use it like shortcode? Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Label shortcode’ is closed to new replies.
Home / Plugin: Advanced Woo Labels - Product Labels for WooCommerce / Label shortcode
Hi, I want to use label in custom grid layout. Is it possible to use it like shortcode? Thanks.
Hi,
For you plugin doesn’t supports shortcodes, but you can use PHP function for this.
Use code like
<?php echo AWL_Label_Display::instance()->show_label( 'on_image' ); ?>
or
<?php echo AWL_Label_Display::instance()->show_label( 'before_title' ); ?>
depending on label position.
Please note that this code must be called inside products loop.
Regards