Skip to content

Instantly share code, notes, and snippets.

@LinzardMac
Created July 23, 2013 23:47
Show Gist options
  • Save LinzardMac/6067095 to your computer and use it in GitHub Desktop.
Save LinzardMac/6067095 to your computer and use it in GitHub Desktop.
$params = array(
'orderby' => 't.menu_order ASC',
'limit' => 4,
);
$restaurants = pods( 'restaurant', $params );
while ( $restaurants->fetch() ) :
$name= $restaurants->field('name');
$permalink= $restaurants->field('permalink');
$blurb = $restaurants->field('blurb');
//all my html for the detail info here
endwhile;
reset($restaurants);
while ( $restaurants->fetch() ) :
$name= $restaurants->field('name');
// all my html for the lists here
endwhile;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment