Author Next/Prev Article Links

By illumemagazine - February 18, 2013

Hi...

I was wondering how I could modify this code to show results by author only... so users can navigate to next/prev articles by the given author...

Thanks

list($prevRecord, $nextRecord, $firstRecord, $lastRecord) = getPrevAndNextRecords(array(
'tableName' => 'am_articles',
'recordNum' => $articlesRecord['num'],
'where' => 'approved = 1', // optional - defaults to all records in section
'orderBy' => 'publishDate', // optional - defaults to schema listPageOrder
));
//echo "<pre>";print_r($nextRecord); print_r($prevRecord);
if($prevRecord)
{
$arlink= $prevRecord['_link'];
$atitle= $prevRecord['title'];

foreach ($prevRecord['article_image'] as $nupload):
$narticle= $nupload['urlPath'];
endforeach;
}
if($nextRecord){
$arlink= $nextRecord['_link'];
$atitle= $nextRecord['title'];

foreach ($nextRecord['article_image'] as $nupload):
$narticle= $nupload['urlPath'];
endforeach;
}