Skip to content

Commit

Permalink
feat: adding alt text from featured
Browse files Browse the repository at this point in the history
  • Loading branch information
NiclasNorin committed Dec 20, 2024
1 parent 8abbe92 commit 43d318b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/php/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ private static function getPost($post)
'post_date_formatted' => date(get_option('date_format'), strtotime($post->post_date)),
'post_modified' => strtotime($post->post_modified),
'thumbnail' => get_the_post_thumbnail_url($post) ? get_the_post_thumbnail_url($post, [480, 270]) : '',
'thumbnail_alt' => get_post_meta(get_post_thumbnail_id($post->ID), '_wp_attachment_image_alt', true),
'tags' => $tags,
'categories' => $categories,
'algolia_timestamp' => current_time("Y-m-d H:i:s"),
Expand Down

0 comments on commit 43d318b

Please sign in to comment.