Skip to content

Commit

Permalink
Merge pull request weblab#139 from jjc16105/master
Browse files Browse the repository at this point in the history
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
<?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.