Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #139 from jjc16105/master
set persons_per_row = 4 if not set
  • Loading branch information
jmr06005 committed Apr 20, 2016
2 parents 10dbd90 + 265ee03 commit 7cfdd21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inc/people-grid.php
Expand Up @@ -5,7 +5,10 @@ if ( $the_query->have_posts() ) { ?>
<?php
$person_count=1;
$persons_per_row = get_field("persons_per_row"); // default is 4

if ( ! $persons_per_row ){
$persons_per_row = 4;
}

while ( $the_query->have_posts() ) {
$the_query->the_post();

Expand Down

0 comments on commit 7cfdd21

Please sign in to comment.