Re: [Dan Maitland] Display both featured and open houses on same page
Dan,
This is untested for your needs, but I'm thinking it's what you need.
Basically you'll need to call for the properties twice in pre-head code. Once like you have it for the featured properties:
list($listingsRecords, $listingsMetaData) = getRecords(array(
'tableName' => 'listings',
'where' => 'featured = 1',
'perPage' => '6',
));
Then once again for the open house properties like this:
list($openListingsRecords, $openListingsMetaData) = getRecords(array(
'tableName' => 'listings',
'where' => 'open house = 1',
));
Your for each statement will need to be adjusted for the open house records like this:
<?php foreach ($openListingsRecords as $record): ?>
code here....
<?php endforeach; ?>
Make sense? In the first call you are using $listingsRecords and in the second call you are using $openListingsRecords
You may have to make a few adjustments to fit your situation, but the concept is the same.
Kenny