Merge pull request #9109 from SiR-DanieL/related-products-args
Wrong per_page attribute
This commit is contained in:
commit
03ed840a79
|
@ -779,7 +779,7 @@ class WC_Shortcodes {
|
||||||
*/
|
*/
|
||||||
public static function related_products( $atts ) {
|
public static function related_products( $atts ) {
|
||||||
$atts = shortcode_atts( array(
|
$atts = shortcode_atts( array(
|
||||||
'posts_per_page' => '4',
|
'per_page' => '4',
|
||||||
'columns' => '4',
|
'columns' => '4',
|
||||||
'orderby' => 'rand'
|
'orderby' => 'rand'
|
||||||
), $atts );
|
), $atts );
|
||||||
|
|
Loading…
Reference in New Issue