From f10f144a4822a42e40b2249f98f2bcfd4bd337f4 Mon Sep 17 00:00:00 2001 From: Vasil Kolev Date: Tue, 14 Oct 2014 19:26:14 +0300 Subject: [PATCH] load all sponsors --- functions.php | 4 ++-- page-sponsors.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 2ff3e1e..2937f75 100644 --- a/functions.php +++ b/functions.php @@ -67,7 +67,7 @@ function sponsors_shortcode() { $result= '

'.pll__('Спонсори').'

'; - $sponsors_args = array( 'post_type' => 'sponsors', 'orderby' => 'rand' ); + $sponsors_args = array( 'post_type' => 'sponsors', 'orderby' => 'rand', 'nopaging' => 'true'); $sponsors = new WP_Query( $sponsors_args ); ob_start(); @@ -102,7 +102,7 @@ function partners_shortcode() { $result= '

'.pll__('Партньори').'

'; - $sponsors_args = array( 'post_type' => 'sponsors', 'orderby' => 'rand' ); + $sponsors_args = array( 'post_type' => 'sponsors', 'orderby' => 'rand', 'nopaging' => 'true' ); $sponsors = new WP_Query( $sponsors_args ); ob_start(); diff --git a/page-sponsors.php b/page-sponsors.php index b2db166..f805a26 100644 --- a/page-sponsors.php +++ b/page-sponsors.php @@ -16,7 +16,7 @@ get_header(); ?>
'sponsors', 'orderby' => 'rand' ); + $sponsors_args = array( 'post_type' => 'sponsors', 'orderby' => 'rand', 'nopaging' => 'true' ); $sponsors = new WP_Query( $sponsors_args ); $sponsor_count = 0;