load all sponsors

This commit is contained in:
Vasil Kolev 2014-10-14 19:26:14 +03:00 committed by Openfest
parent 63e857aa29
commit f10f144a48
2 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ function sponsors_shortcode() {
$result= '<h3>'.pll__('Спонсори').'</h3>'; $result= '<h3>'.pll__('Спонсори').'</h3>';
$sponsors_args = array( 'post_type' => 'sponsors', 'orderby' => 'rand' ); $sponsors_args = array( 'post_type' => 'sponsors', 'orderby' => 'rand', 'nopaging' => 'true');
$sponsors = new WP_Query( $sponsors_args ); $sponsors = new WP_Query( $sponsors_args );
ob_start(); ob_start();
@ -102,7 +102,7 @@ function partners_shortcode() {
$result= '<h3>'.pll__('Партньори').'</h3>'; $result= '<h3>'.pll__('Партньори').'</h3>';
$sponsors_args = array( 'post_type' => 'sponsors', 'orderby' => 'rand' ); $sponsors_args = array( 'post_type' => 'sponsors', 'orderby' => 'rand', 'nopaging' => 'true' );
$sponsors = new WP_Query( $sponsors_args ); $sponsors = new WP_Query( $sponsors_args );
ob_start(); ob_start();

View File

@ -16,7 +16,7 @@ get_header(); ?>
<div class="separator"></div> <div class="separator"></div>
<section class="content grid sponsors-item"> <section class="content grid sponsors-item">
<?php <?php
$sponsors_args = array( 'post_type' => 'sponsors', 'orderby' => 'rand' ); $sponsors_args = array( 'post_type' => 'sponsors', 'orderby' => 'rand', 'nopaging' => 'true' );
$sponsors = new WP_Query( $sponsors_args ); $sponsors = new WP_Query( $sponsors_args );
$sponsor_count = 0; $sponsor_count = 0;