Support » Plugin: Related Products for WooCommerce » Can’t edit the amount of products showing

  • Resolved basicomarketing


    Hi there,

    Thanks for your plugin.
    I can’t figure out two things :
    – How to get rid of this “Related Products” that appears like it is a product.
    – How to set 5 products showing instead of 3 on the screenshot (even if my function is see below).’écran-2020-10-11-à-18.33.35.png

    * Change number of related products output
    function woo_related_products_limit() {
    global $product;

    $args[‘posts_per_page’] = 25;
    return $args;
    add_filter( ‘woocommerce_output_related_products_args’, ‘jk_related_products_args’, 25 );
    function jk_related_products_args( $args ) {
    $args[‘posts_per_page’] = 25; // 4 related products
    $args[‘columns’] = 5; // arranged in 2 columns
    return $args;

    Have a good day,

Viewing 1 replies (of 1 total)
  • Plugin Author webtoffee


    Hi @basicomarketing,

    To hide the related products heading, please add below code snippet to your active theme’s functions.php

    function hide_related_products_heading($heading){
    	$heading = null;
    	return $heading;

    To increase number of related products to display, please add below code snippet.

    function number_of_products_visible($num){
    	$num = 5;
    	return $num;
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.