load all sponsors
This commit is contained in:
parent
63e857aa29
commit
f10f144a48
|
@ -67,7 +67,7 @@ function sponsors_shortcode() {
|
|||
$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 );
|
||||
|
||||
ob_start();
|
||||
|
@ -102,7 +102,7 @@ function partners_shortcode() {
|
|||
$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 );
|
||||
|
||||
ob_start();
|
||||
|
|
|
@ -16,7 +16,7 @@ get_header(); ?>
|
|||
<div class="separator"></div>
|
||||
<section class="content grid sponsors-item">
|
||||
<?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 );
|
||||
$sponsor_count = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue