From cc3962cddb914ebaf74399f31f5738849726a9a4 Mon Sep 17 00:00:00 2001 From: Nicola Mustone Date: Fri, 11 Sep 2015 10:53:26 +0200 Subject: [PATCH] wrong per_page attribute --- includes/class-wc-shortcodes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-shortcodes.php b/includes/class-wc-shortcodes.php index 8352f68bf49..f2f93a0b158 100644 --- a/includes/class-wc-shortcodes.php +++ b/includes/class-wc-shortcodes.php @@ -779,7 +779,7 @@ class WC_Shortcodes { */ public static function related_products( $atts ) { $atts = shortcode_atts( array( - 'posts_per_page' => '4', + 'per_page' => '4', 'columns' => '4', 'orderby' => 'rand' ), $atts );