Forum › Forum › WordPress Theme › SNS Simen – MultiPurpose WooCommerce WordPress Theme › Shortcode featured_products display issues on product pages
-
AuthorPosts
-
March 1, 2019 at 3:36 am #35588
Trying to figure out why my shortcode for featured products will not show in columns as the attribute is correct. This works on non-product pages, but not product pages.
Which, we ONLY need them to show on Product pages.Here is my function:
// Show Featured Products below in horizontal columns function featured_p1() { ?> <?php echo do_shortcode("[featured_products columns='3']"); ?> <?php } add_action('woocommerce_after_single_product', 'featured_p1');
Thanks for the help here.. I think it is running through a “woocommerce” filter not to add certain classes to the products..
Attachments:
-
AuthorPosts
You must be logged in to reply to this topic. Click here to login or register
Useful
Recent Topics
Support Policy
- The time respons: 1-2 days
- Official hour: Mon-Fri / 9am-5pm
- Location time: GMT + 7
- Official hour: Mon-Fri / 9am-5pm
- Location time: GMT + 7