<?php $id=$args['post_id']??get_the_ID();if(!post_type_exists('insight'))return;$q=function_exists('lt_core_relationship_query')?lt_core_relationship_query('insight','lt_lawyer_ids',$id,6):null;if(!$q||!$q->have_posts())return; ?><section class="lt-section lt-section--surface" id="profile-insights"><div class="lt-container"><div class="lt-kicker"><?php esc_html_e('Knowledge','law-temple-theme'); ?></div><h2><?php esc_html_e('Authored insights','law-temple-theme'); ?></h2><div class="lt-grid"><?php foreach($q->posts as $p): ?><article class="lt-card"><div class="lt-card-meta"><?php echo esc_html(get_the_date('', $p)); ?></div><h3><a href="<?php echo esc_url(get_permalink($p)); ?>"><?php echo esc_html($p->post_title); ?></a></h3></article><?php endforeach; ?></div></div></section>
