You’re trying to display the post thumbnail for the attachment itself:
wp_get_attachment_url( get_post_thumbnail_id( 3400 ) )
Instead, use:
wp_get_attachment_url( get_post_thumbnail_id( 2300 ) )
Related Posts:
- How to get image title/alt attribute?
- How to Fix HTTP Error When Uploading Images?
- Delete original image – keep thumbnail?
- Set Featured Image Front Frontend Form
- media_sideload_image generates blank?
- How to change _wp_attachment_metadata specific value in SQL?
- Set (featured) thumbnail for post?
- How can I get a different image size, if all I have is the link?
- Delete all thumbnails for a post
- How to set an attachments parent post id in code?
- How do i show wordpress attachments from current post?
- Need clear explanation about medias/files/attchments
- Image still attached to post even after removing it as featured image
- Exclude featured image from attachment loop
- How to create resized versions of images added with wp_insert_attachment
- Show Multiple Size URL of one Featured Image/Thumbnail?
- Check if parent post is sticky on attachment page?
- How to attach images that I “insert from url” into the post?
- Moved server, and WP now uses original images for all thumb sizes?
- replace featured image from frontend
- Import Dummy Content and Post Thumbnails
- Get all images from posts with maximum number and without featured image
- Why not attaching images after impoting using wp cli
- Close featured image modal windows with JS
- Get the first image from post content (eg.: hotlinked images)
- How do I regenerate thumbnails?
- Add Title Attribute to WordPress Image the_post_thumbnail
- Replacing Gutenberg Featured Image control?
- oEmbed, thumbnails and wordpress
- the_post_thumbnail scaling not hard cropping
- Featured Image Inherited from Parent Page
- Change wording of default thumbnail metabox
- Can WordPress crop only the post thumbnails?
- How to show a featured image as current?
- Show current page featured image in sidebar
- Importing featured image to posts, duplicates the image
- How do I set a featured image (thumbnail) by image URL when using wp_insert_post()?
- Use post thumbnail as div background
- Change post thumbnail using front end post edit form
- Featured image thumbnail sometimes in content, sometimes changes header images
- has_post_thumbnail gives always TRUE
- Displaying wordpress image size as array used for page builder
- Setting a default placeholder image WITHOUT link
- If I Regenerate Thumbnails, would WordPress delete the existing Thumbnails and replace them with ‘new copies’?
- how to use first post image as thumbnail on wordpress
- Make the first image the post thumbnail without setting it as the featured image
- set a chosen image-file-input as a featured image from wp frontend
- Aligning the thumbnail image
- How do get post thumbnail into plugin?
- upload or auto setup feature photo by user avatar
- Can I insert the feature image inside the content, after any paragraph?
- Set Post Thumbnails in Percents
- WordPress returns old thumbnail size after changing media settings
- get_the_post_thumbnail() returns nothing?
- How to bring files from the upload directory to the media gallery?
- Image with large file size not cropping
- What can I do if I set a gif as featured image? no thumbnail when i share on facebook
- Can’t get post thumbnail to display in foreach loop
- Child Category Image
- Resizing thumbnails retrospectively
- upload image only
- How Do I Create A WordPress Secondary Featured Image Without A Plugin? [closed]
- Generating very small sized thumbnails from featured image
- a tricky question about featured image
- Is wordpress compressing my images? if so, how to prevent it?
- Getting featured image with direct $wpdb within plugin
- WordPress get_categories & listing recent post thumbnail
- Edit Media – Edit Custom Sized Featured Images
- Making featured image to show on home page
- Multi post thumbnails doesn’t return anything
- Add filter on certain thumbnail sizes only
- Where in functions.php to add this code so thumbnail images display?
- Adding thumbnails independent of images in blog posts
- Featured image size per post type
- attachment_fields_to_save first parameter is null
- How to exclude 150*150 Image to set as a thumbnail?
- Get featured image from post on RSS feed
- Issue with wordpress thumnails – same thumnail displayed everywhere
- the_post_thumbnail() for displaying page feautred image?
- Featured image size is being restricted–how can I troubleshoot and resolve?
- wp_get_attachment_image not to get the post_thumbnaill
- How to force regenerate thumbnails in WordPress posts?
- Why wordpress doesn’t generate thumbnails?
- Force Regenerate Thumbnails Not Working
- Page featured image not showing on home page
- Featured Image of the post are gone after site move to another server
- Copy wp_postmeta from one database to another
- How can I retrieve a Featured Image thumbnail using only the Post_title?
- setting featured image is not working while running script in background, works when running that script from browser
- How to modify responsive images in post thumbnails
- get_the_post_thumbnail() – Invalid argument supplied for foreach() in /wp-includes/post-thumbnail-template.php on line 64
- Different thumbnail size than actual picture in post
- How to get the featured image inside of a single-.php template?
- Where is the template from the_post_thumbnail()?
- Get Post Thumbnail Outside of Loop
- Theme:Twenty Fourteen, How to remove featured image on single post page for particular category
- get_post_thumbnail_id() not getting correct featured image after post edited
- the_ID & wp_get_attachment_image_src(the_ID(), “medium”) blank
- How to I remove Featured Image from the Posts/Category Lists?
- How do I change the size of the feature picture of a single post?