get featured image url by page id

Get featured image URL by page id in WordPress

Question. I need to display the featured image of a page. How can I get the featured image URL by particular page ID. Any help? Answers 1. Did you try anything? Its always helpful to share what you have tried. $url = wp_get_attachment_url( get_post_thumbnail_id($post_id) ); 2. Or if you want…

Read More