This should be able to return the url of the large image.
$largeImg = wp_get_attachment_link( $attachment_id, 'large', false );
There’s also this incase that doesn’t work.
wp_get_attachment_image_src( $attachment_id, 'large' );
Related Posts:
- How to change ID of an attachment in wp_posts and its related tables correctly?
- How to force regenerate thumbnails in WordPress posts?
- How to extract images of post and pages excluding header and logo image in wordpress?
- Converting a simple plugin to be placed inside of functions.php
- Set attached to state
- Converting Attachment to Images?
- Bulk Image Uploader to create new post from each image [closed]
- Adding Attachment Display Settings in custom media frame
- Redirect to another page using contact form 7? [closed]
- How can I automatically download all images from all imported posts, place them on my new host, and replace all the links
- Search by Attachment ID
- JSON API Plugin not showing Attachments id reused
- Copy/paste local images not working in WordPress
- Get all image in media Gallery with alt/title?
- How to wrap image tag into div for post only?
- Is there any hook to change media html in post? [duplicate]
- How to show post attachment image
- Retrieve post thumbnails
- how to get path to images in the uploads folder to be used in a plugin
- Show Similar Post Titles ( Similar to Stack Exchange )
- How do I unlock a post programmatically?
- How to work with Syntax Highlighter Evolved?
- User-Specific Timezones? Hack? Plugin?
- Delete Post With No Traffic?
- Display (and manage) webcam images?
- Cropping, Re-sizing and Saving images from one folder to another folder in wordpress
- jQuery plugin only in one page/post
- Moving image attachment from post to another?
- How do I change the description of the same image which is to be found in multiple instances?
- Share buttons on article footer
- How to create a Page alias in WordPress
- Dynamic HTML not displaying at respective place
- How to get all attachment image from post ?? WordPress
- How can i change an image’s author?
- Generated Images sizes do not match Media Settings Image Size
- How to filter content post only on save
- How to change Thumbnail size of next Gen Gallery plugin?
- Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory
- How do I create a full-bleed background image on text mouseover? [closed]
- Is there plugin to show recent posts from one website in the widget area of another?
- How use %like% in sql statement wordpress
- Is it possible to insert images directly from the server?
- Output HTML only on individual post view
- Find unused images?
- Image gallery plugin [closed]
- Limit Number of Taxonomy Terms (Images) Displayed
- How can I implement an Add to Collection function on my Image Gallery to be downloaded later?
- How to enable qTranslate languages tabs in custom plugin page
- How can I restrict image upload dimensions for non-admin WordPress users?
- posts comments goes to trash
- Get all attachment by post excluding featured and content inside
- Add padding while generating thumbnail
- Image Manager Plugin [closed]
- Add category selection to custom post type (plugin)
- Adding Static Image to WooCommerce Content-Single-Product template
- wordpress content .php file in an iframe’s src in a wordpress post
- Skewed / slanted button within elementor [closed]
- How to accept images at multiple sizes and aspect ratios and display as standardized image size / ratio?
- Function added to hook “new_to_publish” not executing – custom plugin
- Creating an admin meta box to save post as pending
- Custom Template for wordpress cpt plugin
- How can i summerize posts or news automatically in word press site?
- Looking for a photo management solution
- Elementor Pro display featured image on section -> style -> image using shortcode
- Can export gallery but can’t import it Wp all import
- Help to Create a Simple Plugin to make a post
- Is there a hook similar to “save_post” which only fires AFTER the post is completely published?
- How do I add a medium to the WordPress database with my own plugin?
- Display Multiple Photos as Featured Image when mouse moves on to it post
- what functions to use to resize images and create DB metadata for them after/during upload?
- Show post object of any page in frontend
- Trying to add a new feature in my wordpress website
- automatically set random featured image by category in wordpress on post
- add tags to wordpress post using REST API
- Prefix WordPress Taxonomy Tags With Hashtag Symbol Like Twitter
- How to make a page both “private” and “password protected”
- How can I get the Post ID and Post Type within a Must Use Plugin?
- Does WordPress have a way of changing the ‘Natural’ size of uploaded images?
- WordPress Dashboard organize posts based on categories
- Add new post using a page inside the website
- how to open image gallery in a post/page?
- Custom post type request switches to media request
- Related posts popup
- Determine if get_the_image has image on Get the image Plugin
- Find And Add Category to Posts
- Get page type to display content
- Insert data in custom table during new post creation
- Capturing POST data
- Get a submitted value from front end post form for single template
- Automatically set posts to NoIndex depending on category?
- Notification When Post Approved
- Automatically put a menu on every post
- How should I force WordPress to give proper name for the uploading images?
- Windows 10 Printer that Sends to WordPress [closed]
- Want to show pop up image on home page every time when i refresh it [closed]
- hide particular category post from front page only [closed]
- My Blog page ( posts page ) theme isn’t changing with the new theme [closed]
- Can i have limit posts on a specific category and automatically remove older ones?
- warning wp session
- How do i display the number of images on the “post screen”