Show the name of a blog post's author

2 posts by 2 authors in: Forums > CMS Builder
Last Post: July 9, 2015   (RSS)

Please can you tell me how to show the name of the person who authored a blog post? I'd like to do this on both the list and detail page.

I have this in the head of my list template:

  // load records from 'blog'
  list($blogRecords, $blogMetaData) = getRecords(array(
    'tableName'   => 'blog',
    'perPage'     => '5',
    'loadCreatedBy'       => '',
    'loadUploads' => true,
    'allowSearch' => false,
  ));

This is the line where I want to show the author's name:

Posted by ??? on <?php echo date("l, F jS, Y g:i a", strtotime($record['date'])) ?>

This is the live list page: http://gaiasgardens.ca/blog.php