Commit 589daede authored by numeroteca's avatar numeroteca

make order of Organizations random

parent 31b7a04b
<?php
/* Template Name: Quienes page */
/* Template Name: Quiénes page */
get_header(); ?>
<?php do_action( 'colormag_before_body_content' ); ?>
......@@ -20,7 +20,7 @@ get_header(); ?>
// Loop through users
$args = array(
'post_type' => 'entidad', //sets post type to "entidad"
'order' => 'DESC',
'orderby' => 'rand',
'posts_per_page'=> -1,
'tax_query' => array( // only displays users classified as "Coletivo"
array(
......@@ -52,12 +52,13 @@ get_header(); ?>
<?php endwhile; endif; ?>
<!-- loop listado con imagen y txt -->
<?php if ($my_query->have_posts() ) : while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
<?php get_template_part( 'content', 'archive' ); ?>
<div class="quienes">
<?php if ($my_query->have_posts() ) : while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
<?php endwhile; endif; ?>
<?php get_template_part( 'content', 'archive' ); ?>
<?php endwhile; endif; ?>
</div>
<hr class="separator separator--section" style="clear:both;">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment