Skip to content

Alternatively you could get the featured image with a custom function featured_image_details($post->ID) to return:

array(6) { ["alt"]=> string(24) "Liam Gallagher Knebworth" ["caption"]=> string(24) "Liam Gallagher Knebworth" ["description"]=> string(24) "Liam Gallagher Knebworth" ["name "]=> string(24) "Liam Gallagher Knebworth" ["url"]=> string(86) "http://www.hamishbrown.com/wp-content/uploads/2024/02/20230602_HB_LG_0194-F1-900px.jpg" ["assigned_post"]=> int(5573) }

By

Published on 6th August, 2023

Liam Gallagher
Knebworth
Warner Music