Professor Matthew Davidson
// --- Update CTA (place near the bottom of the template, before get_footer) ---
$name = get_the_title();
$person_id = get_the_ID();
$profile_url = get_permalink($person_id);
// Build a clean query string for the update page
$update_page = home_url('/update-profile/');
$q = [
'person_id' => $person_id,
'name' => $name,
'profile_url' => $profile_url,
];
$update_url = add_query_arg(array_map('rawurlencode', $q), $update_page);
?>