Real Time Web Analytics

Ändern der Anzahl der related Products in WooCommerce

Um die Anzahl der zugehörigen Produkte (related Products) in Woocommerce zu ändern, fügen Sie diesen Code zu Ihrer functions.php hinzu:


* WooCommerce Extra Feature
* ————————–
* Ändert die anzahl der “related products” auf der Produktseite
* Bitte setzen Sie Ihren eigenen Wert für ‘posts_per_page’
function woo_related_products_limit() {
global $product;

$args[‘posts_per_page’] = 6;
return $args;
add_filter( ‘woocommerce_output_related_products_args’, ‘jk_related_products_args’ );
function jk_related_products_args( $args ) {

$args[‘posts_per_page’] = 4; // 4 related products
$args[‘columns’] = 2; // arranged in 2 columns
return $args;



Kainer Weissmann
Kainer Weissmann
A magic mushroom in the rotten cow shit of the 21st century. Nobody Knows Man, Zendesk, WordPress and WooCommerce. I Like Sound, Code, Food, Filming, Editing. Find me on Google+ or contact me for custom coding jobs or Woocommerce/WordPress/Zendesk related problems.

Leave a Reply

Your email address will not be published. Required fields are marked *

Website Protected by Spam Master