Skip to content

Commit

Permalink
Get Kubestronaut post link if available on homepage humans
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Abraham <[email protected]>
  • Loading branch information
cjyabraham committed Jul 2, 2024
1 parent e707760 commit c1624a7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,11 @@ public static function get_teamcloudnative() {
$query->the_post();
$person_title = $post->post_title;
$person_image_url = wp_get_attachment_image_src( get_post_meta( get_the_ID(), 'lf_human_image', true ), 'newsroom-post-width' )[0];
$person_profile_link = get_permalink();

$person_profile_link = get_post_meta( get_the_ID(), 'lf_human_post_url', true );
if ( ! $person_profile_link ) {
$person_profile_link = get_permalink();
}

$hocn_people[] = array(
'title' => $person_title,
Expand Down

0 comments on commit c1624a7

Please sign in to comment.