The solution in the linked post worked well.
I added this:
// load records from 'art_categories'
list($art_categoriesRecords, $art_categoriesMetaData) = getRecords(array(
'tableName' => 'art_categories',
'where' => '`name` IN('.mysql_escapeCSV($artwork_imagesRecord['category:labels']).')',
'loadUploads' => false,
'allowSearch' => false,
));
To use this:
<?php foreach ($art_categoriesRecords as $record): ?>
<a href="/<?php echo htmlencode($record['permalink']) ?>" target="_self"><?php echo htmlencode($record['name']) ?>
<?php endforeach ?></a>
Now, I just have one semi-related issue:
The foreach outputs the array of "All, Paintings", for example. However, all of the artwork, whether drawings or print making, etc, is in the 'All category. How can I always skip the first key in this array so it never prints 'All'?
Skipping the first item seems like it might be really simple, but I've tried using an array_slice and various if statements, but my novice self just can't figure it out.
Thanks for any further guidance.