How to display an image url from thumbnail in wordpress?
Answer Posted / Pallavi Singh
To display an image URL from a thumbnail in WordPress, use the following code:n`echo wp_get_attachment_image( $attachment_id, 'thumbnail' );` Replace `$attachment_id` with the ID of the attachment (post or custom post type) containing the thumbnail.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers