Featured Products instead of latest on home page

Hi,

Is there any way to put featured products instead of latest on the home page. Or can I have additional sections on homepage, like product showing from a category on homepage, etc.

Let me know if that is possible.

Regards

Hello,

I don’t think that there is an easy way to do it without coding, unfortunately.

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.

Hi there,

I found this code to featured woocommerce products.

    $args = array(  
    'post_type' => 'product',  
    'meta_key' => '_featured',  
    'meta_value' => 'yes',  
    'posts_per_page' => 1  
);  
  
$featured_query = new WP_Query( $args );  
      
if ($featured_query->have_posts()) :   
  
    while ($featured_query->have_posts()) :   
      
        $featured_query->the_post();  
          
        $product = get_product( $featured_query->post->ID );  
          
        // Output product information here  
          
    endwhile;  
      
endif;  
  
wp_reset_query(); // Remember to reset  

I believe this is the important line.

        $product = get_product( $featured_query->post->ID );

So I think I will just have to replace that of the latest product code on the home page to retreive featured products there.
Let me know if that’s alright.
If you could tell me where the code is located that’d be great. I thought it should be in page_front-page.php, but its not there… Can you please tell me ?

Hello,

It looks like this issue requires some coding and testing, this goes beyond our support policy. It’s considered advanced customization. As an option, you can contact Codeable for this kind of service, or find a reputable freelancer on Upwork.

Kind Regards, Roman.