This topic has 5 replies, 2 voices, and was last updated 6 years, 3 months ago ago by Olga Barlow
Hello, if you click the website homepage, you will see all the recent products in max of 28 including the pagination.
Is there any shortcode or simple code customization to display list of products based on NEW category below the recent products? And the products also show max of 28 including the pagination.
Hello,
What element did you use to display products there?
Regards
Not sure what element you are asking. But, what I sure is the product loop with the pagination is calling from woopress/woocommerce/archive-product.php
Inside there, this code display the recent products loop with the pagination.
`<?php woocommerce_product_loop_start(); ?>
<?php woocommerce_product_subcategories(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php wc_get_template_part( ‘content’, ‘product’ ); ?>
<?php endwhile; // end of the loop. ?>
<?php woocommerce_product_loop_end(); ?>
</div>
<?php
/**
* woocommerce_after_shop_loop hook
*
* @hooked woocommerce_pagination – 10
*/
do_action( ‘woocommerce_after_shop_loop’ );
?>
So, can I adding and alter something below those codes, to display product loop from other specific product category?
Owh I just understand your question. You mean the element from the visual composer? I don’t use any. I just set the homepage to a blank new page, and it’s auto fill the latest products.
I tried open the homepage and go into visual composer and add new element, but nothing show. I can give you the wp-admin access if you want.
Hello,
Yes, we meant the visual composer element. The simple page does not show the products by default. Very likely you set the shop page as the home page, shop page displays all the products and there is no setting to show products from the specific category only. You can change the sorting order to show the recent products first (Appearance > Customize > WooCommerce > Product Catalog > Default product sorting).
Maybe it’s possible to show products based on category there via additional customization. Submit customization request here because support does not include customization service.
Regards
You must be logged in to reply to this topic.Log in/Sign up