Forum Forum WordPress Theme SNS Simen – MultiPurpose WooCommerce WordPress Theme Shortcode featured_products display issues on product pages

  • Author
    Posts
  • #35588

    theswine
    Participant

    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:
    1. Screen-Shot-2019-02-28-at-1.48.01-PM.png

You must be logged in to reply to this topic. Click here to login or register