This can be accomplished using a third party plugin, such as Display Posts Shortcode.
You’ll need to be running 1.1.23 or later of Directories Pro.
Go into Directories –> [Your Directory] –> Content Types –> Listing –> Manage Displays.
Add a text display element with [display-posts author=”%author_name%”]
Add a Reference Type Custom Field to the Listing.
One can add CSS styles targeting listings in one’s main style.css or by using the CSS editor included in Directories Pro.
Use the following code:
add_action(‘drts_entity_create_post_entity_success’, ‘my_drts_entity_create_post_entity_succes’, 10, 2);
add_action(‘drts)_entity_create_post_entity_succes’, 10, 2);
function my_drts_entity_create_post_entity_succes($bundle, $entity) {
if ($bundle->type === ‘directory__listing’) {
delete_post_thumbnail($entity->getId());
if ($value = $entity->getSingleFieldValue(‘directory_photos’)) {
set_post_thumbnail($entity->getId(), $value[‘attachment_id’]);
}
}
}