Note, that simple Data an attachment Main ID is not a post ID. But you canister simply receive it, for demo example if you require a get featured image ID, you canister data use data of the get_post_thumbnail_id() function.
I hope you get an idea about wp_get_attachment_image_src – WordPress Function.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.