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

set persons_per_row = 4 if not set #139

Merged
merged 1 commit into from Apr 20, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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